No such module
当我尝试构建项目时,我正在寻求Pods。如果我删除期望该Pod的代码,则另一个Pod出现另一个“无此模块”,这意味着每个Pod必须受到影响。键入时,pod install
我收到以下消息:
[!] 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.
对于我的应用程序的调试版本和发行版以及两个测试,我都获得了每一个,因此总共有12条消息。
我已经在构建设置中设置了Always Embed Swift Standard Libraries
和EMBEDDED_CONTENT_CONTAINS_SWIFT
,NO
并且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'] = 'NO'
end
end
end
$(inherited)
按照CocoaPods的建议使用标志