This is the integration sample application to integrate the PolyNet SDK for Apple platforms.
This example contains four projects, one for each platform and language. There are two iOS sample projects: one in Swift (PolyNetSampleSwift) and another in Objective-C (PolyNetSampleObjectiveC). Also, it contains two tvOS sample projects: one in Swift (PolyNetSample-tvOS) and another in Objective-C (PolyNetSample-tvOS-ObjectiveC).
Select and enter the directory of the project you want to run. For example, PolyNetSampleSwift.
cd PolyNetSampleSwift
Then, select one of the following methods.
Navigate to a specific project (PolyNetSampleSwift, PolyNetSampleObjectiveC, etc.). Update the Carthage dependencies for the specific Apple platform (ios/tvos).
carthage update --platform ios --use-xcframeworks
After updating the Carthage dependencies, follow these steps (PolyNetSampleSwift project as a example):
- Open the Xcode project (.xcodeproj) and navigate to the Frameworks folder.
- Right-click the Frameworks folder and select "Add files to PolyNetSampleSwift."
- Ensure that "Reference files in place," "Create groups," and "Add to targets PolyNetSampleSwift" are selected.
- Choose the XCFrameworks (PolyNetSDK, Starscream, and SwiftProtobuf) from the PolyNetSampleSwift/Carthage/Build folder.
- Go to the "General" tab of your project settings and ensure that the added frameworks are set to "Embed & Sign."
After that, run the project from Xcode.
Install or Update the dependencies.
pod update
Beware to open the workspace (.xcworkspace) and not the project (.xcodeproj) itself to work with CocoaPods.
Open the .xcworkspace file of your Xcode project and ensure that only Pods_PolyNetSampleSwift.framework is present in the Frameworks, Libraries, and Embedded Content sections.
After that, run the project from Xcode.
Please visit system73.com/docs for more information or contact us.