开发者

Duplicate XCode Project but same executable on iPhone

开发者 https://www.devze.com 2022-12-21 18:23 出处:网络
I need to develop two similar projects so, after I developed the first one, I copied the project folder, I renamed the folder, I renamed the 开发者_如何学Goproject with the Project->Rename... function

I need to develop two similar projects so, after I developed the first one, I copied the project folder, I renamed the folder, I renamed the 开发者_如何学Goproject with the Project->Rename... function. Everything works fine but when I run&debug my second project I see that the first one project disappear and it is substituted by the second one. Even on the /Users//Library/Application Support/iPhone Simulator/User/Applications the first one folder is deleted and the second one is created. I suppose that the two projects still share some info so they are builded to the same target (of course the XCode Targets are different). Same behavior with a real device.

Where is the mistake?

Thanks


You didn't update your PRODUCT_NAME in your build settings. This is what EXECUTABLE_NAME is based on, which is what's causing your problem.


You can try to use the first project as a project template to the second project. Here is an outline of the steps needed: http://guides.macrumors.com/Creating_Xcode_project_templates

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号