Skip to content

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"

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.

  1. Build MobileMessaging.xcframework as described in Carthage docs
  2. Add MobileMessaging.xcframework to the "Linked Frameworks and Libraries" section of your main application target
  3. If you are using MobileMessagingNotificationExtension, add MobileMessaging.xcframework to the "Linked Frameworks and Libraries" section of MobileMessagingNotificationExtension target.
  4. 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

  1. Build MobileMessaging.framework carthage update --no-use-binaries as described in Carthage docs
  2. Add MobileMessaging.framework to the "Linked Frameworks and Libraries" section of your main application target
  3. If you are using MobileMessagingNotificationExtension, add MobileMessaging.framework to the "Linked Frameworks and Libraries" section of MobileMessagingNotificationExtension target.
  4. Include MobileMessaging.framework in your Carthage framework copying build phase (as described in Carthage documentation).
  5. If your application target does not contain Swift code at all, you should also set the EMBEDDED_CONTENT_CONTAINS_SWIFT build setting to “Yes”.
Clone this wiki locally