Corona build bundle is invalid: application-identifier entitlement

I am trying to build an app with the Corona Simulator “Build for iOS” and I keep getting this warning:

“This bundle is invalid. The application-identifier entitlement is not formatted correctly; it should contain your 10-character App ID Seed, followed by a dot, followed by your bundle identifier”

I have this in my build.settings file:

iphone =
{
plist =
{

CFBundleIdentifier = “com.staytoooned.CaseyBella”

}
}

How can I fix this??

Thanks! [import]uid: 8780 topic_id: 9085 reply_id: 309085[/import]

Hey there,

I’m sorry I didn’t see this earlier!

Is there a reason you are including CFBundleIdentifier line?

My standard build.settings is this;

[lua]settings = {
orientation =
{
default = “portrait”,
},
iphone =
{
plist=
{
UIStatusBarHidden=true,
UIPrerenderedIcon = true
},
},
}[/lua]

Let me know, I’m sure it’s something we can resolve :slight_smile:

Peach [import]uid: 52491 topic_id: 9085 reply_id: 34041[/import]

Thanks Peach for answering this.

I didn’t know how to set the: com.staytoooned.appName bundle Identifier?

I need to set this in the Plist file when I’m setting this up for distribution using XCode. [import]uid: 8780 topic_id: 9085 reply_id: 34044[/import]

I’m afraid I have only used Corona to build AdHoc for distribution, and of course for the App Store or the Xcode simulator.

When building with Corona I believe it should be automatically included in the build, without you having to add it.

When you don’t have the line in there and you attempt to build what exactly is happening? [import]uid: 52491 topic_id: 9085 reply_id: 34060[/import]

I had this exact same problem. I got the exact same error in my project. It would run just fine in the simulator, but fail in the build with the identifier error. As it turned out in my case, I had a binary (.app) from one of my other builds in the game’s directory. When I removed it, the build succeeded. I wonder if this is a security issue that prevents executables from being copied into the build. Anyways, hope this helps anyone that is having this problem. [import]uid: 75797 topic_id: 9085 reply_id: 46974[/import]

It’s my understanding that you don’t have to include the CFBundleIdentifer in the build.settings file. The fact that you sign it with your distribution provision key identifies the bundle. [import]uid: 7559 topic_id: 9085 reply_id: 49945[/import]

To piggyback on what Tom said …

When you create your provisioning profile for distribution in iTunes Connect, you choose the bundle identifier you want to associate that profile with there (separate from the Corona build process).

Then, when you go to build your Corona project using the simulator, you choose your provisioning profile from the drop-down and Corona will use the bundle identifier that’s associated with it automatically.

So to answer your question, your bundleID should not be specified in build.settings or any other Lua file. [import]uid: 52430 topic_id: 9085 reply_id: 49991[/import]

If not specifying the bundle id, how will the app get game center connectivity? [import]uid: 55530 topic_id: 9085 reply_id: 102800[/import]