The Phenix SDK is provided as a standard iOS XCFramework. Please make sure you have installed GitLFS.
You can use our library with the Cocoapod dependency manager.
Podfile Example:
source 'https://github.com/CocoaPods/Specs.git' # Default global repository
source '[email protected]:PhenixRTS/CocoaPodsSpecs.git' # Phenix private repository
target 'your app name'
use_frameworks!
pod 'PhenixSdk'
The Phenix SDK framework is structured as follows:
<SDK root>/lib/PhenixSdk.xcframework/ios-arm64_x86_64-simulator/PhenixSdk.framework: This contains the following architectures for simulators: arm64 & x86_64<SDK root>/lib/PhenixSdk.xcframework/ios-arm64/PhenixSdk.framework: This contains the following physical device architecture: arm64
Notes:
- The Minimum Deployment Target is iOS 9.0. Combined with the supported architectures listed above, this means that the Phenix SDK can run on iOS devices as old as the iPhone4S or iPod Touch 5th Gen.
To integrate the Phenix SDK framework into your Xcode project, follow these steps:
- Add the framework in the
Generalsection of your Xcode project - Open the
Frameworks, Libraries, and Embedded Contentsection within the General page, choose "Add Files" and add the Phenix SDK XCFramework. - Verify that the following property is set:
Runpath Search Pathsshould be@executable_path/Frameworks(under Build Settings -> Linking) - Objective-C only: Set
Enable Modules (C and Objective-C)toYes(under Build Settings -> Apple Clang - Language - Modules) - Import the PhenixSdk module as follows in your source files that need to interact with the Phenix SDK:
@import PhenixSdk;(Objective-C)import PhenixSdk(Swift)
If you were previously using the static Phenix SDK library or Framework, make sure you first remove all references to the static lib or Framework, and other frameworks not needed by your app. You can also delete all compiler and linker flags that you do not need yourself.
Please check our documentation.