> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Framework Impact

> Review the app size and cold launch time impact of the MoEngage iOS SDK frameworks.

This page covers the two ways the MoEngage iOS SDK affects your app: the size it adds to your download and install, and the time it adds to app launch.

## App Size Impact

MoEngage measured the size impact by integrating the SDK into a sample app and uploading each module configuration to App Store Connect. The results report compressed size, which is your app's download size, and uncompressed size, which is the space the installed app occupies on the device.

Measured versions:

* [MoEngage-iOS-SDK](https://cocoapods.org/pods/MoEngage-iOS-SDK) - 9.14.0
* [MoEngageRichNotification](https://cocoapods.org/pods/MoEngageRichNotification) - 7.13.0
* [MoEngageInApp](https://cocoapods.org/pods/MoEngageInApp) - 4.13.0
* [MoEngageCards](https://cocoapods.org/pods/MoEngageCards) - 4.13.0
* [MoEngageGeofence](https://cocoapods.org/pods/MoEngageGeofence) - 5.13.0
* [MoEngageInbox](https://cocoapods.org/pods/MoEngageInbox) - 2.13.0
* [MoEngageRealTimeTrigger](https://cocoapods.org/pods/MoEngageRealTimeTrigger) - 2.13.0

> [!NOTE]
>
> **iPhone 12 Pro as Reference**
>
> The analysis excludes the Universal build, because the App Store installs only the architecture a given device needs. The figures below assume an iPhone 12 Pro running iOS 15.0.

## MoEngage SDK Size Impact

The size analysis was done when MoEngage-iOS-SDK was integrated into a dummy sample app. These figures were measured on the SDK versions listed above and predate the framework linkage change in SDK 11.2.0.

| Framework | Version | Compressed Size | Uncompressed Size |
| :- | :- | :- | :- |
| Dummy Sample App | NA | 36 KB | 125 KB |
| MoEngage-iOS-SDK | 9.14.0 | 849 KB | 2.5 MB |
| MoEngage-iOS-SDK + MoEngageInApp | 4.13.0 | 1.1 MB | 3.3 MB |
| MoEngage-iOS-SDK + MoEngageCards | 4.13.0 | 1.2 MB | 3.4 MB |
| MoEngage-iOS-SDK + MoEngageGeofence | 5.13.0 | 898 KB | 2.7 MB |
| MoEngage-iOS-SDK + MoEngageRichNotification | 7.13.0 | 933 KB | 2.8 MB |
| MoEngage-iOS-SDK + MoEngageInbox | 2.13.0 | 1.1 MB | 3.1 MB |
| MoEngage-iOS-SDK + MoEngageRealTimeTrigger | 2.13.0 | 1 MB | 3 MB |
| All Framework | Mentioned above | 1.8 MB | 5.2 MB |

> [!NOTE]
>
> **Overall Size Impact of MoEngage**
>
> * The compressed size is the download size of your app. The uncompressed size is equivalent to the size of the installed app on the device.
> * The overall size impact of the [MoEngage-iOS-SDK](https://cocoapods.org/pods/MoEngage-iOS-SDK) (Core SDK) along with [MoEngageInApp](https://cocoapods.org/pods/MoEngageInApp), [MoEngageCards](https://cocoapods.org/pods/MoEngageCards), [MoEngageRichNotification](https://cocoapods.org/pods/MoEngageRichNotification), [MoEngageGeofence](https://cocoapods.org/pods/MoEngageGeofence), [MoEngageInbox](https://cocoapods.org/pods/MoEngageInbox), and [MoEngageRealTimeTrigger](https://cocoapods.org/pods/MoEngageRealTimeTrigger) modules is 1.8 MB on compressed size and 5.2 MB on the install size of the app (uncompressed size).

## App Launch Time Impact

Each dynamically linked framework your app embeds is loaded and bound by the system before your app's `main()` runs. That work happens on every cold launch, whether or not your app calls into the framework in that session. The more frameworks the app embeds, the longer this pre-launch phase takes.

From SDK 11.2.0, the following modules are linked statically into your app binary instead of being embedded as separate dynamic frameworks, which removes them from that pre-launch work:

* `MoEngageSDK`
* `MoEngageInApps`
* `MoEngageCards`
* `MoEngageInbox`
* `MoEngageGeofence`
* `MoEngageRealTimeTrigger`
* `MoEngagePersonalization`
* `MoEngageRecommendations`, which ships from SDK 11.3.0

`MoEngageCore`, `MoEngageSecurity`, `MoEngageMessaging`, `MoEngageCampaignsCore`, `MoEngageRichNotification`, and `MoEngageLiveActivity` remain dynamic frameworks. Your Notification Service, Notification Content, and Live Activity extensions link these modules as well, and an extension runs in its own process, so it cannot use code linked into the app binary.

> [!NOTE]
>
> Static linking requires SDK 11.2.0 or later. For more information, see the [iOS SDK release notes](https://moengage.com/docs/release-notes/sdks/ios.md).

### Measured Improvement

MoEngage measured a 44.6% drop in cold launch time on a sample app that integrates every module the iOS SDK provides, after these modules moved to static linking.

The drop varies with the set of modules you integrate. Compare your app's **Launch Time** metric in Xcode Organizer before and after the upgrade to measure the change for your integration.

### Integration Changes

| Integration Method | Required Change |
| :- | :- |
| CocoaPods | None. The podspecs set the link type. |
| Swift Package Manager | None. The package manifest sets the link type. |
| Manual (xcframework) | Add the frameworks to your app target, then three steps for the static ones: set **Do Not Embed** and copy the resource bundle for each static framework, then add `-ObjC` once for the app target. See [Manual Integration](https://moengage.com/docs/developer-guide/ios-sdk/manual-integration/manual-integration.md). |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.