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

后端 未结 5 403
野性不改
野性不改 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:05

    [!] The `X` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `X'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.
    

    I had met this problem today. I solved it by

    1. Go to Project/Targets -> [Project Name] -> Build Settings.
    2. search "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES"
    3. click the right of Debug, and selected 'Other', input "$(inherited)"
    4. do same with 'Release' and install your pod

    You can follow the image below.


提交回复
热议问题