我的项目最初工作正常。当我添加Notification Service Extension时,我遇到了构建错误:
我的桥接-Header.h如下:
我不知道为什么会这样?所以我搜索了它。我已经阅读了一些类似的问题,看起来我需要一个.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