Failed to emit precompiled header for bridging header

后端 未结 20 1564
傲寒
傲寒 2020-11-30 04:35

I downloaded a project from GitHub, then pod the following files, some of which are written by OBJ-C and I used a bridge header.

pod ‘SnapKit’
pod ‘MJRefresh         


        
20条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 05:16

    I also suffered from this after I updated new Xcode. After several hours of investigation, i found that if you have multiple targets, you now have to add more targets in pod file in Xcode 10. So your code should be like this:

    platform :ios, '9.0'
    
    target 'EvoRadio' do
    
    pod ‘SnapKit’
    pod ‘MJRefresh’
    pod ‘Alamofire’
    pod ‘Kingfisher’
    pod ‘MBProgressHUD’
    pod ‘pop’
    pod ‘EVReflection’
    pod ‘StreamingKit’
    pod ‘iCarousel’
    pod ‘ReflectionView’
    
    target 'EvoRadio2ndtarget'   # add your second target
    
    end
    

    I found that in Xcode 9 you don't need to add, but in Xcode 10 you need to add this. Hope this helps.

提交回复
热议问题