Integration via Carthage - infobip/mobile-messaging-sdk-ios GitHub Wiki
If you use Carthage to manage your dependencies, just add MobileMessaging to your Cartfile:
github "infobip/mobile-messaging-sdk-ios"
Carthage version 0.37.0
Starting from Carthage version 0.37.0 it's required to build XCFrameworks instead of Frameworks, information about migrating a project from framework bundles to xcframeworks provided on Carthage github wiki.
- Build MobileMessaging.xcframework as described in Carthage docs
- Add
MobileMessaging.xcframeworkto the "Linked Frameworks and Libraries" section of your main application target - If you are using MobileMessagingNotificationExtension, add
MobileMessaging.xcframeworkto the "Linked Frameworks and Libraries" section ofMobileMessagingNotificationExtensiontarget. - If your application target does not contain Swift code at all, you should also set the EMBEDDED_CONTENT_CONTAINS_SWIFT build setting to โYesโ.
Carthage version < 0.37.0
- Build MobileMessaging.framework
carthage update --no-use-binariesas described in Carthage docs - Add
MobileMessaging.frameworkto the "Linked Frameworks and Libraries" section of your main application target - If you are using MobileMessagingNotificationExtension, add
MobileMessaging.frameworkto the "Linked Frameworks and Libraries" section ofMobileMessagingNotificationExtensiontarget. - Include
MobileMessaging.frameworkin your Carthage framework copying build phase (as described in Carthage documentation). - If your application target does not contain Swift code at all, you should also set the
EMBEDDED_CONTENT_CONTAINS_SWIFTbuild setting to โYesโ.