Configure a new or existing BlackBerry
Dynamics app to use the dynamic framework
BlackBerry
Dynamics
app to use the dynamic framework- Choose one of the following methods to configure the app to use theBlackBerry Dynamics SDKdynamic framework.BlackBerryrecommends using the CocoaPods method.MethodStepsUse CocoaPods
- If you don’t have an existing pod file, use the following commands to create one:cd ‘<project_directory>’ pod init
- Add the following reference to theBlackBerry Dynamics SDKpod:pod 'BlackBerryDynamics'
- To add the BlackBerry Dynamics ATSL to the target app for UI tests, add the following pod:pod 'BlackBerryDynamicsAutomatedTestSupportLibrary'For more information, see Add automated testing to your BlackBerry Dynamics iOS app.
- If default.xcconfig is used by your application, add the following to the end of your Podfile:post_install do |installer| # Append configuration from default.xcconfig to configuration generated by Cocoapods if Dir.glob("**/default.xcconfig").first() system("find Pods -name 'Pods-*.xcconfig' -exec sh -c 'cat `find . -name default.xcconfig` >> $1' -- {} \\;") end end
- Install the pods, then open your .xcworkspace file to see the project inXcode:$ pod install $ open <your-project>.xcworkspace
Use the files available in the SDK package- Extract the contents of theBlackBerry_Dynamics_SDK_for_iOS_file from the SDK package to a directory.<version>_dylib.tar.gz
- In theFrameworks, Libraries and Embedded Contentlist of the project target, addBlackBerryDynamics.xcframework,BlackBerryCerticom.xcframework,BlackBerryCerticomSBGSE.xcframework.Set all of the above frameworks toEmbed and Signso thatXcodewill change the project file by adding the frameworks to the Embed Frameworks step in the Build Phases and will configure the Runpath Search Paths accordingly.
- In theBuild Settingsof the project target, updateFramework Search Pathsto include the directory of theBlackBerryframework files.
- In theHeader Search Paths, include the following entry:<directory_with_framework_files>/BlackBerryDynamics.xcframework/Headers