无法在xcode9.2

时间:2017-12-28 06:57:27

标签: ios swift compiler-errors objective-c-swift-bridge

我的项目最初工作正常。当我添加Notification Service Extension时,我遇到了构建错误:

enter image description here

我的桥接-Header.h如下:

enter image description here

我不知道为什么会这样?所以我搜索了它。我已经阅读了一些类似的问题,看起来我需要一个.pch文件。我按照他们的步骤,但仍然无法修复错误。那么,如何解决呢?

我的Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, ‘9.1’
use_frameworks!

target 'xxxx' do
    pod 'SnapKit'
    pod 'RxCocoa'
    pod 'Then'
    pod 'Moya/RxSwift'
    pod 'Kingfisher'
    pod 'MJRefresh'
    pod 'Moya-ObjectMapper/RxSwift'
    pod 'RealmSwift'
    pod 'SwiftMessages'
    pod 'NSObject+Rx'
    pod 'IQKeyboardManagerSwift'
    pod 'UMengAnalytics'      
    pod 'SwiftKeychainWrapper'
    pod 'Qiniu'
    pod 'ReachabilitySwift'
    pod 'ESTabBarController-swift'
    pod 'RxDataSources'
    pod 'RxGesture'
    pod 'SwiftLint'
    pod 'TLPhotoPicker'

    target 'ZhiMa_iOSTests' do
        inherit! :search_paths
        pod 'RxBlocking'
        pod 'RxTest'
    end
end

0 个答案:

没有答案