Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Bundle Id Defined In Xcode Project Does Not Match Id Entered For This App In Itunes Connect
Started by sachin1 Mar 16 2013 09:26 AM

23 replies to this topic
deploy ios bundle id

Best Answer Rob Miracle , 16 March 2013 - 06:23 PM

I never specify a bundle ID in my build.settings file.  I depend on that being in the provisioning profile.   Just make sure you have the right provisioning profile.

[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sachin1

[GLOBAL: userInfoPane.html]
sachin1
  • Observer

  • 3 posts
  • Corona SDK

I had successfully submitted an app through Xcode before I moved to Corona and am trying with another app with the same certificate.

 

First of all, if I google any resolution, all links come up to the forum page instead of showing up the exact link, so looks like they redesigned the site.

 

Second of all, its not easy to find any step by step guide to do the app submission SUCCESSFULLY.

 

Third, I have done all I could find regarding the bundle id mismatch error and nothing seems to succeed. I sometimes wonder if I was ok just developing on Xcode. Its no point how easy it is to develop if one cant get their apps submitted.

 

Can anyone help me regarding the Bundle ID issue? I have created the zip file through Corona 'Build'. Created a App Id that I am using. Created an entry for it on iTunes. There is no mention it bundle identifier in build.settings. The name I am giving while creating the app on corona is exactly the same as the app id created. What am I missing?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,753 posts
  • Corona Staff

What bundle ID are you entering into your build.settings? 



[TOPIC: post.html]
#3

sachin1

[GLOBAL: userInfoPane.html]
sachin1
  • Observer

  • 3 posts
  • Corona SDK

Thanks for getting back. I have not mentioned any bundle id in build.settings. I had read in one forum that we don't need to. Will that be true?

 

But I have tried with the bundle id entry as well:

 

CFBundleIdentifier="com.companyname.appname"

 

Entry from iTunesConnect

Bundle IDcom.companyname.appname

 

Also, Is there any step by step you can guide me to so I can confirm everything again too?



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,753 posts
  • Corona Staff

  Best Answer

I never specify a bundle ID in my build.settings file.  I depend on that being in the provisioning profile.   Just make sure you have the right provisioning profile.



[TOPIC: post.html]
#5

sachin1

[GLOBAL: userInfoPane.html]
sachin1
  • Observer

  • 3 posts
  • Corona SDK

That was it. I edited and confirmed the settings in my provisioning profile. REBOOTED (Very important or it didnt show for me). And then created the package again. Thanks for the help on this one.



[TOPIC: post.html]
#6

pagelmcb

[GLOBAL: userInfoPane.html]
pagelmcb
  • Observer

  • 14 posts
  • Corona SDK

I am brand new to iOS/mac/xcode. I do not know how to change the provisional profile. I have 2 certificates, a wildcard and mycompany... 

 

I am actually able to use corona to build & upload. Then get the 1 error that my "bundle ID MyGame does not match the iTunes connect ID com.mycompany.MyGame"

 

Then if I put "com.mycompany.MyGame" in the app name box just before the build it says: "bundle ID com-mycompany-MyGame does not match the iTunes connect ID com.mycompany.MyGame"

 

I am racked my brain for a while, even though it seems like it should be a quick fix. I have no CFBundleID or any other CFBundle* information in my build.settings...



[TOPIC: post.html]
#7

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,753 posts
  • Corona Staff

You have to create an App ID on the Apple Provisioning Portal.  Once you have the app created (this is where you set com.mycompany.mygame), you next need to create 1-3 provisioning profiles from the same site.  One profile is for distribution to Apple.  One Profile is for AdHoc which is technically a distribution profile, but many of us use it for development.  There is a Development profile that I rarely use.

 

Until you generate the appropriate provisioning profile with a real App ID you will not be able to setup anything on iTunes Connect.



[TOPIC: post.html]
#8

lbolduc

[GLOBAL: userInfoPane.html]
lbolduc
  • Enthusiast

  • 83 posts
  • Corona SDK

I have the right provisioning profile ( com.mycompany.* ) not cited in build.settings, a standard build.settings file and only one main.lua file. I keep getting bounced.

 

iTunesConnect thinks it sees the binary file 'Bundle ID Suffix.app/Bundle ID Suffix.app/Bundle ID Suffix' which it rejects. The Bundle ID Suffix is the name of the project folder.

 

This exact scenario worked perfectly for the other 4 apps in this series, which seamlessly moved on to Waiting for Review. Do you have any idea why this would be happening now?



[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,753 posts
  • Corona Staff

Odd that the .app would be in there twice.

 

Let me ask the team and see if they've ever seen this.



[TOPIC: post.html]
#10

lbolduc

[GLOBAL: userInfoPane.html]
lbolduc
  • Enthusiast

  • 83 posts
  • Corona SDK

Thanks very much, Rob.

 

Corona 1076, Xcode 4.6, App Loader 2.8



[TOPIC: post.html]
#11

lbolduc

[GLOBAL: userInfoPane.html]
lbolduc
  • Enthusiast

  • 83 posts
  • Corona SDK

My bad. Build was saved to project folder; resulting zip accepted for 4 previous apps. New restriction.

 

Saved build to empty "Staging" folder. Resulting zip accepted. Waiting for Review.

 

Thanks, Rob and Tom.



[TOPIC: post.html]
#12

push2eject

[GLOBAL: userInfoPane.html]
push2eject
  • Observer

  • 8 posts
  • Corona SDK

Is there a step-by-step walkthrough for uploading a Corona app onto the app store?

I'm getting the same error as this thread title and am getting very confused. I'm wondering if I've done something to do with the Provisioning Profile in the wrong sequence. And I don't really understand all the certificates, provisioning profiles, App ID, Bundle ID, Bundle ID Suffix -- it seems nightmarishly complex compared with the Google Play Store!

Here's what I have in iTune Connect:

SKU: au.com.myCompany.myAppName
Bundle ID: Xcode: iOS Wildcard AppID - * (This is the only option it allows me to select)
Bundle ID Suffix: au.com.myCompany.myAppName (I don't really know what to put here, but it won't let me leave it blank)
Your Bundle ID: au.com.myCompany.myAppName (non-editable)
Apple ID: a 9-digit number that I can't edit
Type: iOS App

My distribution provisioning profile includes:
App ID: Xcode: iOS Wildcard AppID (*) (there are no other options to select)

There doesn't seem to be anywhere to add the Bundle ID or Suffix into the provisioning profile... so...

Rob, how do you get your Bundle ID into your provisioning profile???

EDIT:

It seems that Corona is generating the Bundle ID from whatever I type in the Build for iOS -> Application Name field. However when I changed this from myAppName to au.com.myCompany.myAppName, the Application Loader reported that the Xcode Project Bundle ID was now au-com-myCompany-myAppName (note the hyphens instead of periods) so it still didn't match the iTunes Connect Bundle ID. And I'm still stuck.



[TOPIC: post.html]
#13

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,753 posts
  • Corona Staff

We have a guide on this:
 

http://docs.coronalabs.com/guide/distribution/iOSBuild/index.html

 

Since you are getting the WildCard, that tells me you don't have everything setup right in your Provisioning Portal.  You need the following:

 

1.  A Certificate / Key setup.

2. Next you generate an App ID.

3. Next you register some Devices for testing.  Technically this isn't needed to upload to iTunes Connect, but you really should conduct some on device tests before submitting.

4. Next you generate a couple of Provisioning Profiles.  There are two to pay attention to, "AdHoc" and "Distribution".  AdHoc is the one you will use to test on device (there is a Development profile for this as well, but most of the time the AdHoc works).  Distribution is what is needed to upload to the store.

 

With all of these resources pulled together, you download these "Profiles" and load them into your system. There are multiple ways to do that.  I'm an old school command line person, so I download them to my Downloads folder then move them to my /Users/rmiracle/Library/MobileDevice/Provisioning Profiles folder.  Restart Corona, then pick the right provisioning profile you want.  Others will load via Xcode.

 

If you have all that right, when you go iTunes Connect and add a new app, your app should show up in the drop down list.  You cannot use the wild card to distribute apps with.

 

Go through that guide step by step and make sure you have every thing right.

 

Rob



[TOPIC: post.html]
#14

push2eject

[GLOBAL: userInfoPane.html]
push2eject
  • Observer

  • 8 posts
  • Corona SDK

Fantastic Rob, thank you very much! -- The guide solved everything.

 

I had been doing all my development and device testing with the wildcard App ID, and didn't realise it couldn't be used for distribution (I thought the com.myCo.myApp string got automatically appended somehow which would make it valid for distribution).

 

I've now made a unique App ID, and a new Dist. Provisioning Profile to suit, and my app is uploading happily as I type...  :)

 

Thanks again.

Kevin.



[TOPIC: post.html]
#15

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,753 posts
  • Corona Staff

Fantastic!



[TOPIC: post.html]
#16

jollzy

[GLOBAL: userInfoPane.html]
jollzy
  • Observer

  • 27 posts
  • Corona SDK

You have to create an App ID on the Apple Provisioning Portal.  Once you have the app created (this is where you set com.mycompany.mygame), you next need to create 1-3 provisioning profiles from the same site.  One profile is for distribution to Apple.  One Profile is for AdHoc which is technically a distribution profile, but many of us use it for development.  There is a Development profile that I rarely use.

 

Until you generate the appropriate provisioning profile with a real App ID you will not be able to setup anything on iTunes Connect.

 

I never specify a bundle ID in my build.settings file.  I depend on that being in the provisioning profile.   Just make sure you have the right provisioning profile.

Hi rob

 

can you tell do i use my Leaderboard ID  for the leaderboard score submition?

 

do i create this id in the gamecenter iTunes connect? 

local myCategory = "com.yourname.yourgame.highscores"

 

or this where i use the Leaderboard ID from the iTunes connect

 

its a bit confusing

 

 

according to this 

 

local function postScoreSubmit( event )

   --whatever code you need following a score submission...
   return true
end
 
local myScore = 100
 
--for GameCenter, default to the leaderboard name from iTunes Connect
local myCategory = "com.yourname.yourgame.highscores"
 
if ( system.getInfo( "platformName" ) == "Android" ) then
   --for GPGS, reset "myCategory" to the string provided from the leaderboard setup in Google
   myCategory = "CgkJtbq23agVEAIQAQ"
end
 
gameNetwork.request( "setHighScore",
{
   localPlayerScore = { category=myCategory, value=tonumber(myScore) },
   listener = postScoreSubmit
} )


[TOPIC: post.html]
#17

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,753 posts
  • Corona Staff

iTunes Connect lets you name your Product ID anything you want.  You could call it "gobbledygook" if you wanted... as long as its  unique.  The reason Apple uses com.yoursite.your app, what is known as a reverse domain name is that if you own acme.com's domain, you should be the only person using "com.acme" which starts you off on a safe "namespaced" path having unique values.  They enforce this on the App Bundle ID's, but for In App Purchase ID's , GameCenter ID's, etc. it can be anything as long as it's unique.    It's very highly recommended that you use the com.yoursite.yourapp.yourleaderboard naming scheme as an easy way for you to maintain your product ID's in a unique fashion.

 

If you named your leaderboard "Jimbob" in iTunesConnect, then that's what you pass as the category value.



[TOPIC: post.html]
#18

jollzy

[GLOBAL: userInfoPane.html]
jollzy
  • Observer

  • 27 posts
  • Corona SDK

iTunes Connect lets you name your Product ID anything you want.  You could call it "gobbledygook" if you wanted... as long as its  unique.  The reason Apple uses com.yoursite.your app, what is known as a reverse domain name is that if you own acme.com's domain, you should be the only person using "com.acme" which starts you off on a safe "namespaced" path having unique values.  They enforce this on the App Bundle ID's, but for In App Purchase ID's , GameCenter ID's, etc. it can be anything as long as it's unique.    It's very highly recommended that you use the com.yoursite.yourapp.yourleaderboard naming scheme as an easy way for you to maintain your product ID's in a unique fashion.

 

If you named your leaderboard "Jimbob" in iTunesConnect, then that's what you pass as the category value.

thats a bit confusing according to the itunes connect this is what i could call my leaderboaerd id

 unique alphanumeric identifier that you create for this leaderboard. Can also contain periods and underscores.

 

but if you says so i will have a try thanks



[TOPIC: post.html]
#19

jollzy

[GLOBAL: userInfoPane.html]
jollzy
  • Observer

  • 27 posts
  • Corona SDK

thats a bit confusing according to the itunes connect this is what i could call my leaderboaerd id

 unique alphanumeric identifier that you create for this leaderboard. Can also contain periods and underscores.

 

but if you says so i will have a try thanks

thanks rob, it works



[TOPIC: post.html]
#20

jollzy

[GLOBAL: userInfoPane.html]
jollzy
  • Observer

  • 27 posts
  • Corona SDK

thanks rob, it works

Hi Rob

 

Can you tell me is it just me or everyone lose their score after a while on the game center sandbox?

Is it because its not the production server so the highscores are temporary stored for testing purpose?

 

thanks



[TOPIC: post.html]
#21

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,753 posts
  • Corona Staff

GameCenter sandboxs do not share data with production.  They are for testing only.



[TOPIC: post.html]
#22

jimprucey

[GLOBAL: userInfoPane.html]
jimprucey
  • Observer

  • 11 posts
  • Corona SDK

http://docs.coronalabs.com/guide/distribution/iOSBuild/index.html

 

this Doc is good for building on the device for testing but not that great for App store submissions

 

I submitted a couple apps to the Play store successfully with Corona and a couple of apps to the App Store(iOS) with x-code successfully.

But I'm not having much success with corona and the App Store

if anyone has a better link for Corona iOs distribution  please let me know.



[TOPIC: post.html]
#23

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,753 posts
  • Corona Staff

If you build with an app store distribution profile, when the build is done, you should be prompted to upload it to iTunes connect using the Apple  app submission tool.  You have to have iTunes connect set to be expecting your upload just like you would with an Xcode app.



[TOPIC: post.html]
#24

jimprucey

[GLOBAL: userInfoPane.html]
jimprucey
  • Observer

  • 11 posts
  • Corona SDK

Thanks Rob I got it submitted




[topic_controls]
[/topic_controls]