To install the frameworks manually, follow the steps below:
Download the latest SDKs from our GitHub repository. You can find the download URLs for each SDK in package.json.
Copy Framework files into your project
Add the XCFramework file of the module you want to integrate into your project. Also, make sure that MoEngageSecurity.xcframework
,MoEngageSDK.xcframework
,MoEngageCore.xcframework
,MoEngageAnalytics.xcframework
,MoEngageObjcUtils.xcframework
and MoEngageMessaging.xcframework
are added [to App target]. This is because all the other modules have a dependency on these frameworks.
Embedded Frameworks in App Target
Make sure to embed the required frameworks to App Target as described in the following image, set the Embed option to Embed & Sign for MoEngage framework files:
Link MoEngageRichNotification framework in App Extensions
This is only required if you are using the MoEnagageRichNotification
framework in the project. Make sure to link the framework in the Extension targets as shown below and set Embed option to Do Not Embed in this case as it is already embedded in your App Target:
In extension target build settings, add @executable_path/../../Frameworks
as additional LD_RUNPATH_SEARCH_PATHS
.