ios – 更新到Xcode 8后的错误:“没有这样的模块”和“目标覆盖
发布时间:2020-12-15 01:45:45 所属栏目:百科 来源:网络整理
导读:当我尝试构建项目时,我正在为Pods提供这样的模块.如果我删除期望这个Pod的代码,另一个’没有这样的模块’会出现另一个Pod,这意味着每个Pod都必须受到影响.当我输入pod install时,我收到以下消息: [!] The X target overrides the `EMBEDDED_CONTENT_CONTAIN
当我尝试构建项目时,我正在为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标准库和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 解决方法[!] 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. 我今天遇到了这个问题.我解决了 >转到项目/目标 – > [项目名称] – >构建设置. 您可以按照下面的图片. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- mtd-utils命令简介
- postgresql – 慢速嵌套循环左连接,索引扫描循环130k次
- c – 我需要#undef一个本地的#define吗?有没有像本地定义的
- 在PostgreSQL中将文本附加到列数据
- xcode – 无法打开Swift导游游乐场
- c# – 将BitmapImage从Resources.resx分配给Image.Source?
- ruby-on-rails – Rails:如何从字符串中检查CSS或JS代码?
- Princeton Algorithms: Part 2 [week 6: Regular Expressio
- 设计模式六大原则:里氏替换原则
- 如何使用ajax开发web应用程序(二)