当前位置: 代码迷 >> 综合 >> xxxTests-Info.plist Error in Xcode(删除test target)
  详细解决方案

xxxTests-Info.plist Error in Xcode(删除test target)

热度:4   发布时间:2023-12-19 15:42:35.0


I keep getting this error in Xcode and it's highly confusing: 


error: could not read data from '/Users/mjz/Desktop/xxx-iOS-BTv3/xxxTests/xxxTests-Info.plist': The file “(myapp)Tests-Info.plist” couldn’t be opened because there is no such file. 

when I go to my targets and find this "test" , it won't let me delete it. 



how to delete it ?

1、选择Edit Scheme


2、此时会发现,在build标签下有2个target,其中一个就是同名的Tests target,注意此时是无法直接删除Tests target的(下面的减号是不可点击的)


3、选中Test标签,选中Tests target,点击减号,将该target删除


4、此时可以看到,build标签下已经自动将Tests target移除,清爽了~


5、随后便可以肆无忌惮的删除项目内所有包含Tests的内容,一身清爽~


6、删除完毕之后,编译通过~



  相关解决方案