在构建项目时,我遇到了No such module
的问题。如果我删除需要这个Pod的代码,则会出现另一个Pod的'No such module'错误,这意味着每个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)
标志。 - kye