-
Notifications
You must be signed in to change notification settings - Fork 28
iOS SDK 3.x Framework Size Reduction
NOTE: All frameworks are stripped from v3.7 onwards.
Webex iOS SDK comes with both iPhoneOS (arm64) and Simulator (x86_64) architectures to test it on both simulator and device while development but when the app is uploaded to the App Store only arm64 architecture is uploaded which is automatically taken care by cocoapods. If you wish to not use cocoapods to manage your dependencies please refer strip-architectures.sh script to remove the x86_64 architecture at the time of releasing your app.
- WebexSDK.framework (v3.6.0) size: 486MB
- WebexBroadcastExtensionKit.framework (v3.6.0) size: 2MB
To reduce the size of framework, follow the given steps:
- Navigate to frameworks folder inside Pods
cd /Pods/WebexSDK/Frameworks
- Use following command to remove the debug symbols
strip -N WebexSDK.framework/WebexSDK
After removing dSym you should see the size of frameworks reduced by more than half.
- WebexSDK.framework (v3.6.0) size: 205MB
- WebexBroadcastExtensionKit.framework (v3.6.0) size: 1MB
NOTE: For comparing size of Webex iOS SDK, please compare the TestFlight build so it only contains 1 architecture (arm64). Latest release supports M1 mac architecture which might bloat up the WebexSDK pods size.