Xcode 11.2.1(11B53)@import FBSDKCoreKit错误

问题描述 投票:-1回答:1

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

如何成功构建项目?

Error ScreenShot

xcode pod fbsdk
1个回答
0
投票

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

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.