Install iOS SDK
The Social Plus SDK for iOS is delivered as a binary .xcframework file
Last updated
Was this helpful?
The Social Plus SDK for iOS is delivered as a binary .xcframework file
Last updated
Was this helpful?
Drag AmitySDK.xcframework
, Realm.xcframework
& RealmSwift.xcframework
to your project.
Make sure that Copy items if needed
is selected and click Finish.
Also switch the Embed section as Embed & Sign
The correct setup should look like this.
AmitySDK
supports installation via dependency managers.
SwiftPM
Cocoapods
Carthage
To integrate AmitySDK into your project via SwiftPM, please follow the instructions below.
Enter the repository URL to search the package, and choose to install AmitySDK
.
Please specify the required version of the SDK using the"Up to Next Major Version"
Dependency Rule
as shown in the image below.
We have dropped support for Cocoapod & Carthage for AmitySDK
. If you want to distribute AmitySDK through cocoapod & carthage, you can use the xcframeworks
that we distribute through Swift Package Manager (SPM).
To use live video broadcast:
Import AmityLiveVideoBroadcastKit.xcframework
to your project.
To use a live video player:
Import AmityVideoPlayerKit.xcframework
to your project
Switch each framework to Embed & Sign
, except MobileVLCKit
to Do Not Embed
.
To install Swift Packages for Amity Video, please follow the instructions below.
Import AmityVideoPlayerKit.xcframework
to your project
Switch each framework to Embed & Sign
, all xcframeworks.
To install Swift Packages for Amity Video, please follow the instructions below.
To use live video broadcast functionalities. Enter the repository URL to search the package, and choose to install AmityVideoBroadcast
.
Try it in your code
To use live video player functionalities. Enter the repository URL to search the package, and choose to install AmityVideoPlayer
.
Try it in your code
If you selected "Up to Next Major Version
" option for the Dependency Rule, you need to manually add the version.
Starting with v6.0.0, AmitySDK for iOS is written in Pure Swift. Although its in pure Swift, you can still use it in Objective-C projects by making Mixed-Language Project.
We recommend you to integrate AmitySDK
for iOS swift directly into your Objective-C project and use Swift language to call the SDK interfaces.
You need to turn Rosetta mode on when using AmitySDK
with arm64 simulator. To force the application to use Apple Rosetta environment with an Apple silicon Mac, refer to for the instructions.
Amity Video requires the AmitySDK
as dependencies. First, ensure you have installed AmitySDK
as per the instructions .
Download , and import to your project.
Download , and import to your project.
To make a mixed language project, create Swift files with necessary interfaces/methods which in turn interacts with AmitySDK
. These interfaces should be exposed with @objc
or @objcMembers
attributes. Reference:
When you add new Swift file into your Objective-C project, Xcode automatically generates a bridging header file. This bridging header exposes your Swift code to Objective C code. For more information you can refer to this guide by Apple: