美文网首页
修改info.plist文件实际路径后报错

修改info.plist文件实际路径后报错

作者: 王洛书 | 来源:发表于2016-07-28 17:06 被阅读0次

创建project后,工程目录里生成了一个Supporting Files文件夹,此文件夹只有组织路径,在Finder中没有实际路径。

今天在Finder里创建了Supporting Files,将info.plist放入此文件夹,引入工程后,编译。

报错:error: could not read data from '/Users/etong/Git-Projects/EtongMallV2-5/EtongMallV2-5/Info.plist': The file “Info.plist” couldn’t be opened because there is no such file.

因为此时info.plist的实际路径变了(组织路径没变),导致编译时找不到文件,需要重新配置文件路径解决。

解决办法:

TARGETS - 工程名 - Build Settings - Packaging - Info.plist,在后面输入框中重新配置Supporting Files实际路径,编译成功。

相关文章

网友评论

      本文标题:修改info.plist文件实际路径后报错

      本文链接:https://www.haomeiwen.com/subject/fyvajttx.html