1、PrefixHeader.pch 文件和info.plist文汪和件路径问题
*'~PrefixHeader.pch'file not found(该文件不能被打开)
*'~Info.plist':The file "Info.plist" couldn't be opened because there is no such file(由于该路径下没有“Info.plist”文件尚未被找到,故此文件不能被打开)
与此同时,点击info时,发现页面呈现如下信息:Infomation from info.plist not available.File may not exist at specified path
解决方法:工程中Build Setting中配置正确的相对路径,$(SRCROOT)/+路径
错误2:Info.plist
Showing Recent Messages :-1: Multiple commands produce '/Users/wangzelong/Library/Developer/Xcode/DerivedData/LNRuntime-cfwqvkqkkqmiuudqlpmmdsrncvpv/Build/Products/Debug-iphonesimulator/LNRuntime.app/Info.plist': 1) Target 'LNRuntime' (project 'LNRuntime') has copy command from '/Users/wangzelong/Desktop/Runtime-RunLoop/Runtime 运行时/LNRuntime/Info.plist' to '/Users/wangzelong/Library/Developer/Xcode/DerivedData/LNRuntime-cfwqvkqkkqmiuudqlpmmdsrncvpv/Build/Products/Debug-iphonesimulator/LNRuntime.app/Info.plist' 2) Target 'LNRuntime' (project 'LNRuntime'薯搭) has process command with output '/Users/wangzelong/Library/Developer/Xcode/DerivedData/LNRuntime-cfwqvkqkkqmiuudqlpmmdsrncvpv/Build/Products/Debug-iphonesimulator/LNRuntime.app/Info.plist'
解决方困手盯案:
根据提示信息,选中对应的target->Build Phases ->Copy Bundle Resource ->移除Info.plist
参考文章:https://blog.csdn.net/vivi1111vivi/article/details/50628589
https://www.jianshu.com/p/7637246485e2
使用旧版的Xcode创建project后,工程目录里会生成一个燃笑Supporting Files文件夹,不过此文件夹只有组织路径,在Finder中没有实际路径皮孝含。
今天使用Xcode9.4创建project后,工程目录不再自动生成Supporting Files文件夹了,为了项目文件目录结构的清晰,我自己在Finder里创建了Supporting Files文件夹,然后将info.plist和一些图片资源的管理集,放入了此文件夹,编译却出现了以下错误
</ignore_js_op>
出现这个问题的原因是因为这时info.plist的实际路径变了,但组织路径没有充,导致编译时找不到文件,再重新配置文件路径就可以解决了。
解决方法:
TARGETS - 工程名 - Build Settings - Packaging - Info.plist,慎扮在后面输入框中重新配置Supporting Files实际路径,编译成功。
其实,这时候编译实际还有一个问题存在,那就是:The Copy Bundle Resources build phase contains this target's Info.plist
</ignore_js_op>
这是一个警告,原因是 这是由于在Copy Bundle Resources(TARGETS->build phase)中添加了info.plist造成的。找到Copy Bundle Resources 把info.plist 去掉就可以了。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)