Skip to content

iOS SDK 3.x Framework Size Reduction

Akshay Agarwal edited this page Mar 3, 2023 · 7 revisions

SDK Frameworks

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

Framework Size Reduction

To reduce the size of framework, follow the given steps:

  1. Navigate to frameworks folder inside Pods cd /Pods/WebexSDK/Frameworks
  2. 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.

References