iOS SDK¶
This document applies to our SDK version 5.2.8 for iOS and tvOS. The sample code is written in Swift and is compatible with Xcode 16.4 or later
Our SDK is delivered as a binary xcframework built with Swift Library Evolution support.
Requirements¶
iOS 15.0 or later, tvOS 15.0 or later, and Xcode 16.4 or later. Starting from the version 5.2.6 our SDK supports Swift 6. Version 5.2.8 is built with Xcode 16.4.
Note
Starting from version 5.2.7 the minimum supported version is iOS 15.0 (previously iOS 13.0). The minimum for tvOS is 15.0.
Integration sample¶
A reference integration sample application can be obtained from https://github.com/System73/polynet-ios-sample-app. After cloning the project, ensure to switch to the master branch to get the latest version. Then, choose the preferred dependency manager between CocoaPods and Carthage.
To build and execute the sample, please refer to the instructions in the README.md located in the project directory.
Adding the SDK to your project¶
Information Property List File (Info.plist)¶
Arbitrary HTTP Loads¶
By default, the application will prevent non secure HTTP requests. Open the Info.plist as a source code, add the following code to allow non-secure HTTP requests.
Instead of modifying the source code directly, you can select the Info tab of your project's target and add the tag App Transport Security Settings. Inside the App Transport tag, add the tag Allow Arbitrary Loads: YES.
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
Project Settings¶
Embed Swift Standard Libraries [Only in pure ObjectiveC projects]¶
Select the Build Settings tab of your project's target and go to Build section. Set Always Embed Swift Standard Libraries to YES.
Dependencies¶
PolyNetSDK.xcframework depends on the following:
- WebRTC (
WebRTC.framework, for iOS and tvOS). It must be present in your app. The Swift Package Manager package adds it automatically. - SwiftProtobuf is included inside
PolyNetSDK.xcframework.
Choosing an integration method¶
| Method | Status | When to use it |
|---|---|---|
| Swift Package Manager | Recommended | New and existing projects. WebRTC is added automatically. |
| Carthage | Supported | Projects already using Carthage. |
| CocoaPods | Legacy - No future release | Existing projects only. The latest version available on CocoaPods is 5.2.8. CocoaPods support ends on December 2, 2026. |
Using Swift Package Manager (recommended)¶
Swift Package Manager (SPM) is Apple's dependency manager and is built into Xcode. It resolves the dependencies of the SDK for you, including WebRTC for iOS and tvOS.
Add the package in Xcode¶
- Open your project in Xcode.
- Go to File → Add Package Dependencies…
- Enter the repository URL in the search field:
https://github.com/System73/system73-sdk-ios-spm.git
- Set the Dependency Rule to Up to Next Major Version (for example, from
5.2.8), or choose Exact Version and select a specific release. - Click Add Package and select your app target.
The package adds WebRTC for iOS and tvOS automatically. SwiftProtobuf is included in the SDK, so you do not need to add swift-protobuf to your app.
Add the package in Package.swift¶
dependencies: [
.package(
url: "https://github.com/System73/system73-sdk-ios-spm.git",
from: "5.2.8"
)
],
targets: [
.target(
name: "YourApp",
dependencies: [
.product(name: "PolyNetSDK", package: "system73-sdk-ios-spm")
]
)
]
For complete setup instructions and technical details, see the GitHub repository.
Using Carthage¶
Carthage is a decentralized dependency manager that builds your dependencies and provides you with frameworks. For usage and installation instructions, visit the project website.
To integrate Edge Intelligence SDK into your Xcode project using Carthage, specify it in your Cartfile.
A sample Cartfile for iOS and tvOS:
binary "https://artifacts.s73cloud.com/repository/raw-s73-releases/s73-polynet-plat/polynet-apple-sdk/PolynetSDK.json" ~> 5.2.8
Highly Recommended
Use the operator ~> to match the latest compatible version of our SDK.
Use the --use-xcframeworks parameter when using Carthage update.
Using CocoaPods¶
CocoaPods is a dependency manager for Apple platforms projects. For usage and installation instructions, visit the project website.
Latest version on CocoaPods: 5.2.8
The latest version of PolyNetSDK available on CocoaPods is 5.2.8.
To integrate the SDK into your Xcode project using CocoaPods, specify the pod PolyNetSDK in your Podfile. Note that PolyNetSDK is a framework and you must use the use_frameworks! flag. The pod will download and build our SDK and the required dependencies.
A sample Podfile for iOS and tvOS:
use_frameworks!
target 'YourApp' do
pod 'PolyNetSDK', '~> 5.2.8'
end
Note
It is recommended to use the pattern '~> 5.2.8' to match the latest compatible version.
CocoaPods is being discontinued
CocoaPods Trunk becomes read-only on December 2, 2026. The last version of PolyNetSDK published to CocoaPods is 5.2.8, and CocoaPods is not supported for later versions. Versions already published remain available.
We recommend migrating to Swift Package Manager. To remove CocoaPods from your project, run pod deintegrate, delete the .xcworkspace file, and add the package as described above.
This section was last updated 2026-11-25