如何在 CMake 中使用 Podfile?

问题描述 投票:0回答:0

我有一个用 CMake 构建的跨平台 C++ 项目。

在 iOS 上,我需要使用 YandexMobileAds,我可能需要添加以下内容 Podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, :deployment_target => '12.0'

target 'YandexMobileAdsExample' do
  pod 'YandexMobileAdsAdMobAdapters'
  pod 'YandexMobileAdsIronSourceAdapters'
  pod 'YandexMobileAdsMediation'
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
    end
  end
end

How to do I make XCode to use this Podfile (make this Podfile participate in the build)?

将这个Podfile复制到生成

.xcodeproj
的同一个目录就够了吗?

xcode cmake cocoapods
© www.soinside.com 2019 - 2024. All rights reserved.