1.在已有的target上面右击,选择Dupicate就产生新的target了
![](https://i-blog.csdnimg.cn/blog_migrate/8f5f94898fb9e4a6631383623e4e9950.webp?x-image-process=image/format,png)
2.在新产生的target上面双击修改名称
3.scheme的名称可能显示 xxxCopy,可以通过复这个scheme命名为target的名字,然后删除这个名字带copy的scheme
![](https://i-blog.csdnimg.cn/blog_migrate/e22cbc0e85823abda97cc6cd6f4d556c.webp?x-image-process=image/format,png)
4.这样新建的target不会产生这些文件,需要我们手动创建(或者复制),并关联到我们新建的target上面
![](https://i-blog.csdnimg.cn/blog_migrate/982553b973032b0092b2e12a64027ad0.webp?x-image-process=image/format,png)
5.可能需要修改的地方,选中我们新建的target, 分别设置一下pch,info.plist
6.过程可能出现的问题 xcode错误不提示
参考链接:http://wuchaorang.2008.blog.163.com/blog/static/4889185220153702829966/ 谢谢该博主的文章。
![](https://i-blog.csdnimg.cn/blog_migrate/46c835fd92c69e700458f379f154b8f1.webp?x-image-process=image/format,png)