加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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.

我今天遇到了这个问题.我解决了

>转到项目/目标 – > [项目名称] – >构建设置.
>搜索“ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES”
>单击Debug右侧,选择’Other’,输入“$(inherited)”
>对“发布”执行相同操作并安装您的吊舱

您可以按照下面的图片.

enter image description here

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读