1.在已有的target上面右击,选择Dupicate就产生新的target了
![](http://upload-images.jianshu.io/upload_images/628652-369c728940e50c14.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
2.在新产生的target上面双击修改名称
3.scheme的名称可能显示 xxxCopy,可以通过复这个scheme命名为target的名字,然后删除这个名字带copy的scheme
![](http://upload-images.jianshu.io/upload_images/628652-ba6c7a63259e8411.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
4.这样新建的target不会产生这些文件,需要我们手动创建(或者复制),并关联到我们新建的target上面
![](http://upload-images.jianshu.io/upload_images/628652-722b89019173d5c8.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
5.可能需要修改的地方,选中我们新建的target, 分别设置一下pch,info.plist
6.过程可能出现的问题 xcode错误不提示
参考链接:http://wuchaorang.2008.blog.163.com/blog/static/4889185220153702829966/ 谢谢该博主的文章。
![](http://upload-images.jianshu.io/upload_images/628652-94f43d7c708296f7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)