i dowloaded google maps sdk (1.8.1) for ios,I'm using it in my app.But what i noticed is that size of the framework is about 55MB.Is there any way to decrease the size of framework. A file named "A" in directory structure "GoogleMaps.framework/Versions/A" is about 54MB.Is google maps depended on this file.please suggest some help.
Asked
Active
Viewed 1,713 times
2
-
1Don't work about the framework size. Worry about the final size of your ipa. – rmaddy Jun 13 '14 at 05:03
-
does it affect ipa size,my project size is 78MB,plz help – user3710452 Jun 13 '14 at 05:07
3 Answers
2
a framework is bound to be larger than the compiled in code thats ending up in your ipa.
- the framework has the code for N architectures, the headers and the resources
- what you will use in the end is the code for 1 architecture and the resources
As far as I can remember it adds about about 1mb to your ipa
they now ship bitcode as the iPad is compiled on apple's side for each customer.

Daij-Djan
- 49,552
- 17
- 113
- 135
-
I have removed apple map and add Google map through pod thats increase my 'ipa' size (from 2.7 mb to 9.5mb) nearly 7 mb. – Vivek Gajbe Jul 25 '17 at 06:15
-
they now ship bitcode as the iPad is compiled on apple's side for each customer. – Daij-Djan Jul 25 '17 at 08:20
0
cd GoogleMaps.framework/Versions/Current
ls -lh GoogleMaps # 113 MB
If you don't support phones higher than the iPhone 5:
lipo -remove arm_v7 GoogleMaps -o GoogleMaps
If your development machine is a 64 bit machine:
lipo -remove i386 GoogleMaps -o GoogleMaps
And then:
ls -lh GoogleMaps # 75MB

Kamchatka
- 3,597
- 4
- 38
- 69
-3
Keep GoogleMap framework outside of the project and just drag it in your project without copy file. It will reduce the file size. Only bundle file keep inside of your project.

user3663584
- 100
- 6