Prepare an app to use the BlackBerry Dynamics SDK static framework
BlackBerry Dynamics SDK
static framework- In theFrameworks, Libraries and Embedded Contentlist of the project target, add references to the following frameworks to the list of frameworks used in the project. These frameworks are installed in<SDK_install_folder>/Good.platform/iOS/Frameworks/:Xcode build systemFrameworks
- GD.framework
- BlackBerryCerticom.xcframework
- BlackBerryCerticomSBGSE.xcframework
Legacy Xcode build system- GD.framework
- BlackBerryCerticom.framework
- BlackBerryCerticomSBGSE.framework
- Set bothBlackBerryCerticomframeworks 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 theSupporting Filesgroup, add a reference to GD.framework/Resources/GDAssets.bundle.
- If you are using the legacyXcodebuild system, add the following Run Script step to the project's build phases to remove the x86_64 slices from the frameworks when building for a device:if [ ${PLATFORM_NAME} == "iphoneos" ]; then FRAMEWORKS_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}/Frameworks" for frameworkName in BlackBerryCerticom BlackBerryCerticomSBGSE do FRAMEWORK_EXECUTABLE_PATH=${FRAMEWORKS_PATH}/${frameworkName}.framework/$frameworkName FRAMEWORK_TMP_PATH="${FRAMEWORK_EXECUTABLE_PATH}-tmp" lipo -remove "x86_64" "$FRAMEWORK_EXECUTABLE_PATH" -output "$FRAMEWORK_TMP_PATH" rm "$FRAMEWORK_EXECUTABLE_PATH" mv "$FRAMEWORK_TMP_PATH" "$FRAMEWORK_EXECUTABLE_PATH" done fi