Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: The application bundle does not contain a valid identifier

I'm getting this error "The application bundle does not contain a valid identifier" after my application successfully compiles.This error prevents my game from launching on the phone or the simulator. I have no idea how to fix this as I was following this tutorial How To Make A Space Shooter iPhone Game using Cocos2d.

like image 713
lampShade Avatar asked May 20 '11 13:05

lampShade


People also ask

What is a valid bundle identifier?

A bundle ID uniquely identifies a single app throughout the system. The bundle ID string must contain only alphanumeric characters (A–Z, a–z, and 0–9), hyphens (-), and periods (.). Typically, you use a reverse-DNS format for bundle ID strings. Bundle IDs are case-insensitive.


2 Answers

This could be because the bundle identifier has invalid characters in it or no characters in it. The bundle identifier is found in the Info.plist file.

This is what constitues a valid application bundle identifier:

The bundle identifier string identifies your application to the system. This string must be a uniform type identifier (UTI) that contains only alphanumeric (A-Z,a-z,0-9), hyphen (-), and period (.) characters. The string should also be in reverse-DNS format. For example, if your company’s domain is Ajax.com and you create an application named Hello, you could assign the string com.Ajax.Hello as your application’s bundle identifier. The bundle identifier is used in validating the application signature. source (apple developer)

This may also be of use:

An identifier used by iOS and Mac OS X to recognize any future updates to your app. Your Bundle ID must be registered with Apple and unique to your app. Bundle IDs are app-type specific (either iOS or Mac OS X). The same Bundle ID cannot be used for both iOS and Mac OS X apps. source

This is somewhat of a double post - I posted the same answer at gamedev.stackexchange.com.

like image 188
CiscoIPPhone Avatar answered Oct 10 '22 07:10

CiscoIPPhone


The problem that was causing this error message for me was that I had a folder called "Resources":

This error can also be caused if your project has a sub_directory called 'Resources'; and possibly other special names that I didn't trip over. - source

I also had the -Info.plist file missing from the Buildphase (thanks to thumbsup for his answer above).

like image 27
lindon fox Avatar answered Oct 10 '22 06:10

lindon fox