Search code examples
iosgoogle-maps-sdk-ios

Including Google.Framework into my bundle file?


I have a question. I have downloaded google's latest SDK for ios from https://developers.google.com/maps/documentation/ios/start

It is a whopping 64MB file.

According to the instruction on the page itself, it says i have to include the GoogleMaps.framework inside my project and copy files if needed.

However, does it mean that the while file GoogleMaps.frameworl (64MB) will be included inside the bundle file when I submit my project online?

If not what is the exact way to do it?

Thank you very much.

PS I browsed through this Decreasing the size of google maps sdk for ios However, I am still confuse. What exactly is the procedure?


Solution

  • Yes, you need to the steps from the getting started page. And yes, your uncompressed application will get 64 more megabytes. There's no other workaround for adding a non-apple framework to an iOS app (like using a shared location for frameworks).

    However ipa files are zipped versions of your app bundle, so the total size of your app will reduce (how much it depends on how well the files in your bundle can compress). Also the 2nd answer from the question you posted mentions that the strip of other architectures when the ipa is generated, so the final size of your app will not increase that much.