本文介绍了更新到Xcode 8后的错误:“没有这样的模块”和“target”覆盖`EMBEDDED_CONTENT_CONTAINS_SWIFT`build设置"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试构建项目时,我正在获取没有这样的模块
。如果我删除期望这个Pod的代码,另一个'没有这样的模块'会出现另一个Pod,这意味着每个Pod都必须受到影响。当我输入 pod install
时,我收到以下消息:
[! ] X目标覆盖`X'中定义的`EMBEDDED_CONTENT_CONTAINS_SWIFT`构建设置。这可能导致CocoaPods安装问题
- 使用`$(继承)`标志,或
- 从目标中删除构建设置。
[!]`X`目标覆盖`X'中定义的`ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES`构建设置。这可能导致CocoaPods安装问题
- 使用`$(继承)`标志,或
- 从目标中删除构建设置。
我为我的应用程序的调试和发布版本以及两个测试得到了这些,所以共计12条消息。
我已设置始终嵌入Swift标准库
和 EMBEDDED_CONTENT_CONTAINS_SWIFT
到否
和 YES
在我的构建设置中都没有做任何事情。我还将以下代码添加到我的Podfile中,它也不起作用:
post_install do | installer |
installer.pods_project.targets.each do | target |
target.build_configurations.each do | config |
config.build_settings ['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] ='否'
结束
结束
结束
'的div类= h2_lin>解决方案
[!]的`X`目标覆盖在`X设置定义的`ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES`构建。这可能导致CocoaPods安装问题
- 使用`$(继承)`标志,或
- 从目标中删除构建设置。
我今天遇到了这个问题。我解决了这个问题
- 转到项目/目标 - > [项目名称] - >构建设置。
- 搜索ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
- 单击Debug右侧,选择Other,输入$(inherited)
- 同样使用'释放'并安装您的吊舱
您可以按照下图显示。
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 Pod, which means every Pod must be affected. When I type pod install
I get the following messages:
[!] The X target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT` 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.
[!] 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 get each of these for both the debug and release versions of my app and the two tests, so 12 messages in total.
I have set Always Embed Swift Standard Libraries
and EMBEDDED_CONTENT_CONTAINS_SWIFT
to NO
and YES
both in my Build Settings and this did nothing. I also added the following code to my Podfile and it didn't work either:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'NO'
end
end
end
解决方案
[!] 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
- Go to Project/Targets -> [Project Name] -> Build Settings.
- search "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES"
- click the right of Debug, and selected 'Other', input "$(inherited)"
- do same with 'Release' and install your pod
You can follow the image below.
这篇关于更新到Xcode 8后的错误:“没有这样的模块”和“target”覆盖`EMBEDDED_CONTENT_CONTAINS_SWIFT`build设置"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!