您的位置:首页 > 其它

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

2016-01-14 01:29 483 查看
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、删除完毕之后,编译通过~
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: