Failed to emit precompiled header for bridging header

后端 未结 20 1535
傲寒
傲寒 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:09

    There are so many reasons and things can do, like:

    • Restart Xcode, Clean, Build
    • Remove Pods directory and pod install
    • Check the missing file is added to your pod file
    • Check the missing file is added to you bridging header
    • Change the header settings like here iOS - Build fails with CocoaPods cannot find header files

    The only one works for me is the accepted answer in Xcode 9 - failed to emit precompiled header.

    platform :ios, '11.0' in podfile should match the target in the project

提交回复
热议问题