The file “Info.plist” couldn’t be opened because there is no such file

时间:2021-12-19 20:53:29

修改了Info.plist的实际文件位置(项目和单元测试对应不同的Info.plist),报错

(null): could not read data from '/Users/xxxxx/Desktop/gsk/zhsy/zhsy/Info.plist': The file “Info.plist” couldn’t be opened because there is no such file.

解决办法

情景1.如果有单元测试,那就设置一下单元测试target的info,与项目target不是一个路径。


The file “Info.plist” couldn’t be opened because there is no such file



情景2.如果已经删除单元测试相关文件,则是删的不够彻底,把单元测试的target也删掉就OK了。

The file “Info.plist” couldn’t be opened because there is no such file