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.xcframework
to the "Linked Frameworks and Libraries" section of your main application target - If you are using MobileMessagingNotificationExtension, add
MobileMessaging.xcframework
to the "Linked Frameworks and Libraries" section ofMobileMessagingNotificationExtension
target. - 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-binaries
as described in Carthage docs - Add
MobileMessaging.framework
to the "Linked Frameworks and Libraries" section of your main application target - If you are using MobileMessagingNotificationExtension, add
MobileMessaging.framework
to the "Linked Frameworks and Libraries" section ofMobileMessagingNotificationExtension
target. - Include
MobileMessaging.framework
in 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_SWIFT
build setting to โYesโ.