iOS   发布时间:2022-05-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – 更新到Xcode 8后的错误:“没有这样的模块”和“目标覆盖`EMBEDDED_CONTENT_CONTAINS_SWIFT`build设置”大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

当我尝试构建项目时,我正在为Pods提供这样的模块.如果我删除期望这个Pod的代码,另一个’没有这样的模块’会出现另一个Pod,这意味着每个Pod都必须受到影响.当我输入pod install时,我收到以下消息: [!] The X target overrides the `EMBEDDED_CONTENT_CONTAINS_SWIFT` build setTing defined in `X’
当我尝试构建项目时,我正在为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)”
>对“发布”执行相同操作并安装您的吊舱

您可以按照下面的图片.

ios – 更新到Xcode 8后的错误:“没有这样的模块”和“目标覆盖`EMBEDDED_CONTENT_CONTAINS_SWIFT`build设置”

大佬总结

以上是大佬教程为你收集整理的ios – 更新到Xcode 8后的错误:“没有这样的模块”和“目标覆盖`EMBEDDED_CONTENT_CONTAINS_SWIFT`build设置”全部内容,希望文章能够帮你解决ios – 更新到Xcode 8后的错误:“没有这样的模块”和“目标覆盖`EMBEDDED_CONTENT_CONTAINS_SWIFT`build设置”所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。