Add the SDK Dependencies by using CocoaPods
To add the Mobile App Messaging SDK as a dependency in your app’s Podfile, add the pod to your Xcode project. See Using CocoaPods: Adding Pods to an Xcode project.
-
Use this code example to specify the dependencies in your app’s Podfile.
The pods listed in this example include the
SFMCSDKmodule automatically. Don’t add the module to your podfile manually. -
Open the
.xcworkspacecreated by the installation process in Xcode.Don’t open
.xcodeprojdirectly. Opening a project file instead of a workspace can lead to errors. -
After you add the dependencies, configure the SDK.