# octopus_ios_sdk **Repository Path**: zy_octopus/octopus_ios_sdk ## Basic Information - **Project Name**: octopus_ios_sdk - **Description**: 广告iOS SDK - **Primary Language**: Objective-C - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-22 - **Last Updated**: 2025-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OctopusSDK ## Example To run the example project, clone the repo, and run `pod install` from the Example directory first. ## Requirements ## Installation OctopusSDK is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your Podfile: 广告SDK安装 ```ruby pod 'OctopusSDK' ``` 百度网盘定制SDK安装 ```ruby pod 'OctopusSDK/OctAdSDKNoShake' ``` Topon适配器SDK安装 ```ruby pod 'OctopusSDK/OctToponAdapterSDK' ``` Topon适配器SDK配置说明 适配器名称 ```ruby 横幅:OctToponBannerAdapter;参数{"slot_id":"","app_id":""} 开屏:OctToponSplashAdapter;参数{"slot_id":"","app_id":"","show_bottomView":"0"} 插屏:OctToponInterstitialAdapter;参数{"slot_id":"","app_id":""} 激励视频:OctToponRewardedVideoAdapter;参数{"slot_id":"","app_id":""} 信息流模版:OctToponNativeAdapter;参数{"slot_id":"","app_id":"","is_unified":"0"} 信息流自渲染:OctToponNativeAdapter;参数{"slot_id":"","app_id":"","is_unified":"1"} ``` 穿山甲适配器SDK安装 ```ruby pod 'OctopusSDK/OctGromoreAdapterSDK' ``` 穿山甲适配器SDK配置说明 适配器名称 ```ruby 参数:AppId(填写广告的appid);代码位ID(填写广告的slotid) 初始化类名:OctGromoreConfigAdapter 横幅:OctGromoreBannerAdapter 开屏:OctGromoreSplashAdapter 插屏:OctGromoreIntersititalAdapter 激励视频:OctGromoreRewardVideoAdapter 信息流模版:OctGromoreNativeAdapter 信息流自渲染:OctGromoreNativeAdapter ``` Amps适配器SDK安装 ```ruby pod 'OctopusSDK/OctAmpsAdapterSDK' ``` Amps适配器SDK配置说明 Amps适配器名称 ```ruby 初始化类名:AMPSOCTSDKManagerAdapter 横幅:AMPSOCTBannerAdapter 开屏:AMPSOCTSplashAdapter 插屏:AMPSOCTInterstitialAdapter 激励视频:AMPSOCTRewardedVideoAdapter 信息流模版:AMPSOCTNativeExpressAdapter, AMPSOCTNativeExpressView ``` ToBid适配器SDK安装 ```ruby pod 'OctopusSDK/OctAwmAdapterSDK' ``` ToBid适配器SDK配置说明 ToBid适配器名称 ```ruby 初始化类名:AWMOctCustomConfigAdapter 横幅:AWMOctCustomBannerAdapter 开屏:AWMOctCustomSplashAdapter 插屏:AWMOctCustomInterstitialAdapter 激励视频:AWMOctCustomRewardedVideoAdapter 信息流模版:AWMOctCustomNativeAdapter 应用id配置:key的名称是 "appID" ``` 如果需要使用beta版SDK,可以指定git分支为main进行安装 ```ruby pod 'sdk名', :git => 'https://gitee.com/zy_octopus/octopus_ios_sdk.git', :branch => 'main' ``` ## 工程设置 有的项目中可能会遇到类似下面的报错: -[__NSCFString Oct_方法名]: unrecognized selector sent to instance 这是由于OctCore.xcframework中的某些类别文件加载不全造成的,这里给出2种解决方案: 1。在other linker flags中,使用-force_load, 进行强制加载 -force_load $(PROJECT_DIR)/Pods/OctopusSDK/OctopusSDK/OctCore.xcframework/ios-arm64/OctCore.framework/OctCore 2。手动将(PROJECT_DIR)/Pods/OctopusSDK/OctopusSDK/OctCore.xcframework加载到工程当中 ## Author zhaojinlong, zhaojinlong@adintl.cn ## License OctopusSDK is available under the MIT license. See the LICENSE file for more info.