iOS SDK インストール
- iOS 13.0以上
- Xcode 14.0以上
- Swift 5.7以上
インストール方法
Section titled “インストール方法”CocoaPods
Section titled “CocoaPods”pod 'YourSDK', '~> 2.5.0'Swift Package Manager
Section titled “Swift Package Manager”- Xcodeでプロジェクトを開く
- File > Add Package Dependencies…を選択
- 以下のURLを入力:
https://github.com/yoursdk/ios-sdk.gitCarthage
Section titled “Carthage”github "yoursdk/ios-sdk" ~> 2.5.0Info.plistの設定
Section titled “Info.plistの設定”必要に応じて以下を追加:
<key>NSAppTransportSecurity</key><dict> <key>NSAllowsArbitraryLoads</key> <false/></dict>AppDelegate.swiftで初期化:
import YourSDK
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { YourSDK.initialize(apiKey: "YOUR_API_KEY") return true}