Swift 4.2-桥接FacebookCore中缺少的头文件时出现编译器错误。有任何想法吗?

时间:2018-12-14 19:14:15

标签: ios swift cocoapods

所以我最近将一个旧的Swift 3.2项目转换为4.2(我知道这是相当不错的进步)。

我遇到以下错误:enter image description here

这是我的Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'

use_frameworks!

target 'app' do
pod 'Alamofire', '~> 4.0'
pod 'EVReflection/XML'
pod 'FontAwesomeKit', :git => 'https://github.com/PrideChung/FontAwesomeKit.git'
pod 'SVProgressHUD'

pod 'PageMenu', :git=> 'https://github.com/orazz/PageMenu.git'
pod 'Kingfisher', '~> 3.0.0'
pod 'RichEditorView'
pod 'SwiftKeychainWrapper'
pod 'FacebookCore'
pod 'CHTCollectionViewWaterfallLayout/Swift'
pod 'FacebookLogin'
pod 'FacebookShare'
pod 'Fuzi', '~> 1.0.0'
end

这看起来正确吗?

谢谢您的见解

1 个答案:

答案 0 :(得分:1)

首先,运行pod install

然后,检查Pod的版本(可能与Swift 4.2不兼容),因此您必须进行更新,或者像这样将Pod检查器上的“ Swift语言版本”更改为swift 3.2:

在项目导航器中选择“ Pod”项目:

enter image description here

在“目标”选择器上选择您的广告连播:

enter image description here

然后在“构建设置”标签上,找到并更改“快速语言版本”属性:

enter image description here

注意:您可以通过这种方式解决此问题,但我强烈建议您更新Pod。