Search code examples
xcodeprojects

Duplicate XCode Project but same executable on iPhone


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 project 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


Solution

  • 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.