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

View Comments to “How to change com.yourcompany in Xcode for iPhone Applications”

|
  1. How to change com.yourcompany in Xcode for iPhone Applications…

    How to change the default com.yourcompany in Xcode’s iPhone Application templates….

  2. sean808080 says:

    thanks for posting this. exactly what I needed. I heard once this was accepted in your app and the app was approved it's hard to change. not sure if that's still the case.

  3. thanks for providing this info, it will be useful for my iphone

  4. septech121 says:

    Very useful in this horde of applications. Thanks
    ls14500 battery

  5. Thanks so much for your great blog;this is the words that keeps me going through these day. I’ve been searching around for this site after asked to visit them from a buddy and was thrilled when I was able to find it after searching for long time. Being a demanding blogger, I’m glad to see others taking initivative and contributing to the community. I would like to comment to show my appreciation for your work as it’s very appleaing, and many bloggers do not get acceptance they deserve. I am sure I’ll be back and will spread the word to my friends.

|

Leave a Reply

blog comments powered by Disqus