You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
[iOS] Static lib size x2 from 3.4.2 to 3.5.2 #9021
Hi.
Thank you for reporting this issue, v3.5.1 was built with Xcode 8.3 that caused Mapbox iOS SDK 3.5.1 to be 2× larger than 3.5.0. Download v3.5.2 also you may need to update your Xcode to latest version.
As reference this is the radar.
This is not related to this xcode issue. I just built both mapbox versions with xcode 8.3.2, the issue is there. It is neither an issue with Mapbox updated version but an issue with Strip command vs new llvm version. It now needs the correct flags at compile time to be able to strip...
Activity
RomainQuidet commentedon May 17, 2017
I gave a try with http://stackoverflow.com/questions/19992463/ios-static-library-compiled-with-xcode-remembers-its-source-files.
This works : In LLVM code generation, set Generate debug symbols to No and Symbols hidden by default to Yes. For some reason, even if you tell it to strip symbols, it's not going to do it unless these are set.
Static Mapbox lib went from 264MB to 163MB. Still bigger than 3.4.2, but much better.
RomainQuidet commentedon May 17, 2017
Another strange behavior, if I extract slices from the static lib, arm slices are still twice the size of intel ones:
-rw-r--r-- 1 mappy staff 155M 17 mai 15:14 Mapbox
-rw-r--r-- 1 mappy staff 56M 17 mai 15:14 Mapbox-arm64
-rw-r--r-- 1 mappy staff 24M 17 mai 15:14 Mapbox-x86
I just ran
'lipo -thin x86_64 Mapbox -output Mapbox-x86'
and the same with arm64 on the newly stripped Mapbox static lib (155MB)
RomainQuidet commentedon May 17, 2017
I'm making some more tests about arm slices and will make a PR for the release static lib
fabian-guerra commentedon May 17, 2017
Hi.
Thank you for reporting this issue, v3.5.1 was built with Xcode 8.3 that caused Mapbox iOS SDK 3.5.1 to be 2× larger than 3.5.0. Download v3.5.2 also you may need to update your Xcode to latest version.
As reference this is the radar.
RomainQuidet commentedon May 17, 2017
This is not related to this xcode issue. I just built both mapbox versions with xcode 8.3.2, the issue is there. It is neither an issue with Mapbox updated version but an issue with Strip command vs new llvm version. It now needs the correct flags at compile time to be able to strip...
RomainQuidet commentedon May 17, 2017
PR #9022
RomainQuidet commentedon May 17, 2017
Just run
make ipackage-strip FORMAT=static BUILDTYPE=Release
before and after the PR, you'll see framework size going from 266MB to 162MB
friedbunny commentedon Jan 5, 2018
Closing this as
won’t-fix— see our understanding framework size doc for more information.