The application-identifier entitlement is not formatted correctly

In order for my game to work with Game Center I had to create a bundleID. I pretty much did like I would do in xcode and wrote com.myname.mygame, I then added the name to

[lua]iphone = {
plist = {
CFBundleIdentifier = “com.myname.mygame”, CFBundleDisplayName = “mygame”
}}[/lua]
So why do I get this message?

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:
59V7W96M28.mygame (-19054)

I tried to add the AppleID generated in iTunes connect, but that’s only 9 and only numeric. My guess is that it’s some sort of Corona App ID? But is it required and why? And can’t I then follow the ordinary Apple BundleID format? If I have to change this I have to delete and recreate everything in Game Center.

/> Daniel
[import]uid: 158989 topic_id: 29124 reply_id: 329124[/import]

Daniel @dbh, I don’t think you need to add CFBundleIdentifier in build.settings. Actually, I sort of remember reading some advice against manually adding CFBundleIdentifier.

I have Game Center working and I don’t have CFBundleIdentifier in my build.settings. So long as you have provisioning profile / distribution certificate(s) set up properly, it should work fine.

Naomi [import]uid: 67217 topic_id: 29124 reply_id: 117180[/import]

Hi Naomi

Thank you for the answer. However, how will Apple identify my app if I don’t add a CFBundleIdentfier in my build settings?

Also: I followed this guide
http://www.coronalabs.com/blog/2012/01/17/tutorial-game-center-integration-ios/

But I’m mainly interested in what this error message means and if it has any cause? Because why would Apple require this mentioned ID on my BundleID? It’s in the Corona SDK Apple validator this message shows.

/> Daniel [import]uid: 158989 topic_id: 29124 reply_id: 117187[/import]

Hey Daniel @dbh, you mean:

CFBundleIdentifier = "com.appledts.GKTapper", -- temporary line for testing!  

It sounds like it’s for testing only. I never used it when I implemented mine.

When you generate a device build, I believe Corona’s build process takes care of the BundleID (because you’d have to use the provisioning/distribution certificate that can tell its BundleID to Corona.)

Maybe the error is mainly due to the provisioning profile / certificate you are using?

Naomi [import]uid: 67217 topic_id: 29124 reply_id: 117191[/import]

Hi Naomi

Ahh… Sorry, didn’t see it was only during temporary testing. Ok, this might because I’m still a test driver and I don’t get access to the full build process, but how will Corona know what I want it to be?

As you can guess, my game is not published, but I had to sign up for Game Center to get it to work like intended, so I had to register the game at Apple with a BundleID etc. How can before hand know what Corona will call my game and why can’t I choose myself like in Xcode? Or maybe I misunderstand something, but then I’m really lost.

/> Daniel [import]uid: 158989 topic_id: 29124 reply_id: 117199[/import]

Daniel @dbh, I think you are right about the issue stemming from you being the test driver. If I remember correctly, unless you have a paid license, you won’t be able to generate a proper device build. And I think testing Game Center against iTunes sandbox requires your game installed on a device. Same is true with In-App Purchase. You can’t test these without the device build, I think.

Naomi [import]uid: 67217 topic_id: 29124 reply_id: 117204[/import]

Naomi

Ohhh… I can make device builds, transfer it to my devices and everything works just fine. I can read/write and use a sandbox version of Game Center. Love Corona, make everything a lot easier, but I want my software to be ready before signing up.

I’m actually also holding off because I want to know more about LEVEL builder and whatever subscription packages they’ll make when launched.

Anyway. Until then I want to get as much as possible ready and I don’t like this warning I’m getting and I really need someone to tell me either to ignore it or tell me how I can setup Game Center not knowing what the app BundleID will be.

I can’t find this error message in any documentation.

/> Daniel [import]uid: 158989 topic_id: 29124 reply_id: 117211[/import]

Daniel @dbh, are you using developer certificate? Can you use AdHoc instead? I had some odd error similar to what you are describing when generating a device build to test IAP against iTC sandbox, and as soon as I switched to AdHoc distribution certificate, all went smoothly for me.

Other than that, I’m out of ideas. Let’s hope someone else knowledgeable will jump in to help you out.

Naomi [import]uid: 67217 topic_id: 29124 reply_id: 117214[/import]

Thank you Naomi

Your help has been much appreciated. I do have one question, if you don’t mind. When you published your game where did you get your BundleID from to add it in iTunes Connect? And how did it look like? What did you enter in the Game Center part of iTunes Connect. You can just fake the data, I just need a general idea.

Maybe that will give me some understanding. Else I hope someone can step in and help me find an answer. It’s the egg and chicken. I need to create the app, but also register it before I can finish it. [import]uid: 158989 topic_id: 29124 reply_id: 117216[/import]

Daniel @dbh, my BundleID looks like com.mycompany.mygame – I think I established it when I generated a provisioning profile at Apple dev center for the game. After I created the provisioning profile, I generated adhoc certificate to use when generating device build. I think I added my game to iTC after I created a provisioning profile and adhoc certificate.

It’s been a while since I entered anything new to Game Center, so I don’t remember exactly what I did, though.

Naomi [import]uid: 67217 topic_id: 29124 reply_id: 117220[/import]

So I take it that you never heard of a 10-character App ID Seed either and you didn’t enter one into any iTunes Connect forms. Thanks for your help Naomi

Can anyone else tell me about the App ID that is suppose to be followed by a dot and my Bundle Identifier? What is it and who needs it? [import]uid: 158989 topic_id: 29124 reply_id: 117230[/import]

You know, Daniel @dbh, the 10-character App ID Seed must be what’s created (or added) to the com.mycompany.mygame when generating the provisioning profile for your game. App ID of my game looks like XXXXXXXXXX.com.mycompany.mygame (and that’s what I see in Xcode as my App Identifier for my AdHoc, Dev and Release Distribution certificates.)

Have you created provisioning profile specific to your game? Or are you using team provisioning profile that looks like XXXXXXXXXX.* as your App ID when you generate your device build?

If you are not using the certificate that looks like it has App ID Seed plus the com.mycompnay.mygame, perhaps that’s the root of your problem?

I’m just guessing – and hopefully, Peach or someone else knowledgeable will jump in to help.

Naomi [import]uid: 67217 topic_id: 29124 reply_id: 117231[/import]

Daniel @dbh, just in case you’re still struggling, you might find this post by Peach helpful:

http://developer.coronalabs.com/forum/2012/01/10/ios-walkthrough-testing-device-0

You might want to post your question there too?

Naomi [import]uid: 67217 topic_id: 29124 reply_id: 117564[/import]

Hi Naomi

Thank you very much for following up on this. I didn’t expect that. I have absolutely no problems with testing my app, so far I added it to a couple of devices and it works fine for testing as I can access the Game Center sandbox and test everything is working. However, I’m “scared” what will happen when I want to release. Because at Apple I had to create the app and give it a BundleID for Game Center to work. So I did. Then I added this BundleID to Corona and Corona complains that a App ID is missing.

So who’s right? Corona or Apple. And will the Game Center part work when I release if my app now need an App ID before my BundleID?

/> Daniel
[import]uid: 158989 topic_id: 29124 reply_id: 117569[/import]

Hey, Daniel @dbh, you might consider asking @jamestimberlakejr for help:

http://developer.coronalabs.com/forum/2012/01/26/free-developer-support

Go to page 3 of that thread, and see post #121. It appears that @info009 received help from James and got his/her problem sorted out. Maybe James can help you reassure you (or help sort out the issue for you.)

Naomi [import]uid: 67217 topic_id: 29124 reply_id: 117604[/import]