有关 CloudX 控制台映射和 Mintegral 侧 ID 设置,请参阅 Mintegral 竞价方指南。本页仅说明 iOS 特定的集成细节。Documentation Index
Fetch the complete documentation index at: https://docs.cloudx.io/llms.txt
Use this file to discover all available pages before exploring further.
安装
CocoaPods
Podfile
手动安装
- 从 Releases 下载
CloudXMintegralAdapter-v{version}.xcframework.zip - 解压并将
CloudXMintegralAdapter.xcframework拖入您的 Xcode 项目 - 手动添加
MintegralAdSDK(~> 8.0),包括BidBannerAd、BidNewInterstitialAd、BidRewardVideoAd和BidNativeAdvancedAd子模块。
Info.plist 配置
SKAdNetwork IDs(iOS 14.5+ 必需)
需要添加 Mintegral 的主要 SKAdNetwork ID 以进行归因:Info.plist
Mintegral 在 dev.mintegral.com/skadnetworkids.json 发布了完整的合作伙伴 SKAdNetwork ID 列表。添加这些额外的 ID 可以提高 Mintegral 需求合作伙伴的归因准确性。
App Tracking Transparency(iOS 14+)
Info.plist
项目配置
链接器标志: 在 Build Settings 的 Other Linker Flags 中添加-ObjC。这是必需的,因为 CloudXCore 是动态框架,Objective-C categories 必须在运行时加载。
部署目标: 确保您项目的最低部署目标为 iOS 13.0 或更高版本。
Mintegral SDK 框架
Mintegral 适配器需要多个系统框架。使用 CocoaPods 时,这些会自动配置。手动集成时,请确保链接以下框架:- Foundation、UIKit、AdSupport、CoreGraphics、CoreTelephony
- SystemConfiguration、AVFoundation、CoreMedia
- QuartzCore、StoreKit、WebKit
- AppTrackingTransparency(弱链接)