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

来源:互联网 发布:mahout聚类算法实现 编辑:程序博客网 时间:2024/06/11 03:00


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、删除完毕之后,编译通过~



0 0
原创粉丝点击