Mar
10

How to change com.yourcompany in Xcode for iPhone Applications

Having been doing some iPhone App development lately, I’ve run into one of the little issues abound. In order to test your application on an iPhone and also deploy it to the Apple iTunes App Store, you need to properly configure your application’s Bundle Identifier in your Info.plist file. All the books tell you this. And Apple makes it a point to tell you how to do this before you try to deploy on the App Store.

After creating App after App though, it becomes a very tedious task. I’ve searched far and wide online and couldn’t find anything that pointed me to how to change it. I did manage to find information on how to change it for developing Mac Desktop Applications. Didn’t really help my case too much.

In any case, what you’re looking for is in the directory path:
/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/Application

In there, you’ll find directories for each type of iPhone Application template that you can create from Xcode.

  • Navigation-Based Application
  • OpenGL ES Application
  • Tab Bar Application
  • Utility Application
  • View-Based Application
  • Window-Based Application

In each directory, there is a file called: Info.plist
Here you can change your default Bundle Identifier by finding the Key String pair.

	<key>CFBundleIdentifier</key>
	<string>com.yourcompany.${PRODUCT_NAME:identifier}</string>

Simply change yourcompany to your new default save. Once you’ve done that. Any new iPhone App you create from Xcode’s iPhone Application templates will be pre-filled with your new identifier.

Much easier than fixing it for each new iPhone App you make. Hope this helps!

Share the Love:
  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Design Float
  • Reddit
  • DZone
  • FriendFeed
  • Twitter
  • email
  • Print

Related Posts

    blog comments powered by Disqus