WARNING: The Copy Bundle Resources build phase contains this target’s Info.plist file ‘Info.plist’.

释放双眼,带上耳机,听听看~!

Technical Q&A QA1649

WARNING: The Copy Bundle Resources build phase contains this target’s Info.plist file ‘Info.plist’.

Important: This document is no longer being updated. For the latest information about Apple SDKs, visit the documentation website.

Q: Why am I getting “WARNING: The Copy Bundle Resources build phase contains this target’s Info.plist file ‘Info.plist'”? And how do I fix it?

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

Figure 1 Remove Info.plist from the Copy Bundle Resources build phase.

image

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 nor 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.

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

 

人已赞赏
iOS文章

ios 开发中的容错处理

2019-10-5 17:21:12

iOS文章

iOS strong和copy的区别

2019-10-5 17:41:58

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索