2

My project works fine at first. when I added Notification Service Extension, I got build errors:

enter image description here

My bridging-Header.h like below:

enter image description here

I don't know why would this happen? So I searched it. I have read some similar questions, it looks like I need a .pch file. I followed their steps, but still can't fix the errors. So, How to solve it?

My 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
Longshihua
  • 395
  • 1
  • 3
  • 20

0 Answers0