ios - 警告 : The Copy Bundle Resources build phase c

我将一个项目分成两个版本,并为每个版本分配一个 plist 文件。一切正常,但我不断收到此构建警告:

Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'MyApp-Info.plist'

当我尝试构建 MyApp 时,我得到了这个。为第二个目标构建会产生相同的错误(警告中带有 SecondTarget-Info.plist)。我不确定为什么这是一个警告,因为我希望构建包含那个 .plist 文件。每个 .plist 文件都有一个目标成员资格(用于它们自己的构建)。

这个警告是什么意思?有什么办法让它消失吗?

最佳答案

https://developer.apple.com/library/content/qa/qa1649/_index.html

摘录:

You are getting this warning because you probably added your Info.plist file to your Copy Bundle Resources build phase as shown in Figure

The INFOPLIST_FILE build setting specifies the name of the Info.plist associated with your target. When building a target, Xcode reads this build setting and copies the referenced Info.plist into your application bundle. Because Xcode automatically processes the Info.plist, you should not add it to your Copy Bundle Resources build phase or make it a target member.

To resolve this warning, select your Info.plist from the Copy Bundle Resource build phase as shown in Figure 1, then click the Remove (–) button to delete it from the phase.

关于ios - 警告 : The Copy Bundle Resources build phase contains this target's Info. plist 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3095612/

相关文章:

android - 使用 Android Studio 构建未签名的 APK 文件

c# - 外部VS2013构建错误 "error MSB4019: The imported pro

objective-c - iOS - 构建失败,CocoaPods 找不到头文件

javascript - 让 Grunt 为不同的设置生成 index.html

node.js - Node 包 ( Grunt ) 已安装但不可用

java - "mvn clean install"与 "mvn install"有何不同?

java - Maven : add a dependency to a jar by relati

macos - 在 Mac OS X 上安装/升级 gradle

visual-studio - obj 和 bin 文件夹(由 Visual Studio 创建)用

java - NoClassDefFoundError - Eclipse 和 Android