Cocoapods 1.0: Header files not found

前端 未结 2 1131
感情败类
感情败类 2020-12-28 13:54

I just tried to update from cocoapods 0.39.x to Cocoapods 1.0. Running

pod install

from the terminal causes no warnings. Everyth

相关标签:
2条回答
  • 2020-12-28 14:23

    I tried remove ~/Library/Developer/Xcode/DerivedData/* and rebuild the project, and it worked for me.

    0 讨论(0)
  • 2020-12-28 14:44

    The error message is quite misleading. At first I thought I have some problems with my header search paths, so I basically tried everything I found on stackoverflow.

    If you use use_frameworks! in your Podfile, you don't have to include every Objective-C pod in your bridging header. You only have to do this, if the pod is distributed as a static library, not as a framework.

    I did the following

    1. Press Cmd + option + shift + k to clean your build folder
    2. Run pod install
    3. Delete the lines in your bridging header where it tells you that the header files are not found and use a simple import statement whenever you want to use that module in one specific Swift file, e.g. import AFNetworking
    0 讨论(0)
提交回复
热议问题