Errors after updating to Xcode 8: “No such module” and “target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT`build setting”

后端 未结 5 394
野性不改
野性不改 2020-12-12 15:32

I\'m getting No such module for Pods when I try to build the project. If I remove the code expecting this Pod, another \'No such module\' comes up for another P

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 16:07

    The errors you see when running pod install should not cause the No such module errors. So my guess is that these errors are unrelated.


    To get rid of the pod install errors:

    This happens because you define a flag in your build settings which overrides that set by CocoaPods. It doesn't matter if you set it to YES or NO, it will still overwrite the setting from CocoaPods.

    To fix this:

    1. Go to Project/Targets -> [Project Name] -> Build Settings.
    2. Find and click on the relevant setting (you can use the search box in the top right corner).
    3. Press Backspace to remove the setting.

    You should see the setting going from bold to normal font. This means that the setting has been deleted, and is using a default value instead.

    Repeat for each flag giving you an error, and rerun pod install to verify that it worked.


    Reasons for No such module errors:

    There are a number of way that this error can occur. Have you looked at these answers to see if any applies to your case? If you report back on that it will be easier to help you.

    1. Xcode : “No such module” error, but the framework is there
    2. “no such module” on Xcode 7 beta 2

提交回复
热议问题