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 the BlackBerry Dynamics SDK dynamic framework. BlackBerry recommends 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 one of the following references to theBlackBerry Dynamics SDKpod:pod 'BlackBerryDynamics', :podspec => 'https://software.download.blackberry.com/repository/framework/dynamics/ios/BlackBerryDynamics.podspec'orpod 'BlackBerryDynamics'
- To add the BlackBerry Dynamics ATSL to the target app for UI tests, add the following pod:
For more information, see Add automated testing to your BlackBerry Dynamics iOS app.pod 'BlackBerryDynamicsAutomatedTestSupportLibrary' - 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' -- {} \\;") endend
- Install the pods, then open your .xcworkspace file to see the project in Xcode:$ pod install $ open <your-project>.xcworkspace
Use the files available in the SDK package- Extract the contents of theBlackBerry_Dynamics_SDK_for_iOS__dylib.tar.gzfile from the SDK package to a directory.
- In theFrameworks, Libraries and Embedded Contentlist of the project target, addBlackBerryDynamics.xcframework,BlackBerryCerticom.xcframework,BlackBerryCerticomSBGSE.xcframework.Set all of the above frameworks to Embed and Sign so that Xcode will 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.