Search code examples
objective-cios5xcode4

How to create a 2nd app from a 2nd target in XCode?


So I created a simple project, which I can test as an iPhone app. Now I'd like to make a slight variation of it, with an iAd. I was able to duplicate the target and test to the iPhone, by managing schemes (http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Building/Building.html).

The issue is that no matter what scheme I test, I overwrite the other app. I'd like to be able to have two apps

  • AppName
  • AppName (Free)

living at the same time on my phone.

I want to avoid duplicating source files, because only the storyboard and the view controller are different, they both use the same images and model otherwise.

Any help is welcome!


Solution

  • Have you tried changing the bundle identifier in the new target you just created? So your full version would have bundle identifier: "com.yourcompany.AppName" and your lite version will have a bundle identifier of: "com.youcompany.AppNameLite"