platform :ios, '13.0' use_frameworks! workspace '../XXGPlayKit.xcworkspace' def applovin_pods pod 'AppLovinSDK' # pod 'AppLovinMediationGoogleAdapter' # Google Bidding and Google AdMob pod 'AppLovinMediationIronSourceAdapter' # ironSource pod 'AppLovinMediationFacebookAdapter' # Meta Audience Network pod 'AppLovinMediationMintegralAdapter' # Mintegral pod 'AppLovinMediationByteDanceAdapter' # Pangle pod 'AppLovinMediationUnityAdsAdapter' # Unity Ads pod 'AppLovinMediationYandexAdapter' # Yandex end target 'EyeGatheringAnchoredShutdownAloneRate' do project '../XXGThirdMiddlewares/CustomerPersonnel.xcodeproj' applovin_pods end target 'XXGPlayKitOSDemo-Pods' do project 'XXGPlayKitOSDemo-Pods.xcodeproj' applovin_pods end # 修复 Xcode 26.6 不支持 iOS 10/11 的问题 # 强制所有 Pods 最低支持 iOS 12.0 post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| deployment_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f if deployment_target < 12.0 config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' puts "⚠️ #{target.name}: 部署目标从 #{deployment_target} 提升到 12.0" end end end end