-
Couldn't load subscription status.
- Fork 22
Integration via Carthage
Davor Komušanac edited this page Dec 5, 2022
·
2 revisions
If you use Carthage to manage your dependencies, just add MobileMessaging to your Cartfile:
github "infobip/mobile-messaging-sdk-ios"
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”.
- 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”.
If you have any questions or suggestions, feel free to send an email to [email protected] or create an issue.