Xcode 11.2.1(11B53)@import FBSDKCoreKit错误

Xcode版本11.2.1(11B53)

我的pod文件在这里;

platform :ios,'9.0'

target 'OnlineHeadBall2' do
  use_frameworks!

  pod 'Bolts'
  pod 'FBSDKCoreKit'
  pod 'FBSDKLoginKit'
  pod 'FBSDKShareKit'
  pod 'Adjust'
  pod 'Fabric'
  pod 'Crashlytics'
  pod 'Firebase/Core'
  pod 'Firebase/Analytics'
  pod 'Onesignal','>= 2.6.2','< 3.0'
  pod 'Branch','= 0.29.3'

  #core SDK
  pod 'AMRSDK','~> 1.4'
  #mediation adapters

  pod 'AMRAdapteradcolony','~> 4.1'
  pod 'AMRAdapterAdmob','~> 7.51'
  pod 'AMRAdapterAdmost','~> 1.2'
  pod 'AMRAdapterFacebook','~> 5.6'
  pod 'AMRAdapterHyprmx','~> 5.2'
  pod 'AMRAdapterironsource','~> 6.8'
  pod 'AMRAdapterMintegral','~> 5.8'
  pod 'AMRAdapterMytarget','~> 5.3'
  pod 'AMRAdapterQumpara','~> 1.1'
  pod 'AMRAdapterTapjoy','~> 12.3'
  pod 'AMRAdapterTiktok','~> 2.3'
  pod 'AMRAdapterUnity','~> 3.3'
  pod 'AMRAdapterVungle','~> 6.4'

end

当我尝试“存档”我的项目时,发生错误; 在禁用C ++模块时使用'@import',请考虑使用-fmodules和-fcxx-modules

如何成功构建项目?

Xcode 11.2.1(11B53)@import FBSDKCoreKit错误

su0123456789 回答:Xcode 11.2.1(11B53)@import FBSDKCoreKit错误

将-fcxx-modules添加到Build Settings-> Other C ++ Flags-> Debug and Release字段。

enter image description here

本文链接:https://www.f2er.com/3103977.html

大家都在问