app store submit process (BundleID) - iphone

Just a simple question about the submit process for AppSore using Xcode 4 (I know already asked, but didn't work for me).
I have my app ready for publish. I have all my certificates, and I can see my provisioning profile with an ID such as xxxxxxx.com.blabla.App.
If I set my Xcode project identifier to com.blabla.App I can select my distribution certificate (it indicates "for Application Identifiers com.blabla.App ").
The project compiles but when I try to submit the App I get the following error
The bundle ID com.blabla.App" defined in your Xcode Project does not match the Bundle ID you entered for this app in iTunes connect xxxxxx.com.blabla.App.
If I try to use this bundle (xxxxxx.com.blabla.App) in the Xcode project, then I cannot select the certificated, is for (com.blabla.App) apps.
I know the solution should be very simple, but, It's mu first time :).
thanks

Just spent 12 hours resolving this so thought I would contribute my 2 cents:
The Bundle Identifier should be com.companyname.appname - this has to be the same as the Bundle ID when you create your app in iTunes Connect
Your Bundle Seed ID (App ID Prefix) ie. 10 digit code SHOULD NOT be entered into xcode nor the bundle ID when creating your app above. The only place you will see it is the App ID within PROVISIONING PORTAL > App IDs. This was very confusing - basically just enter the above (com.companyname.appname) for App ID SUFFIX
FYI the order from scratch should be:
Get Certificates for Developer and Distribution in Provisioning Portal > Certificates
Create APP IDs in Provisioning Portal > App ID
Create Provisioning profile for Dev and Distr in Provisioning Portal > Provisioning
Finally create the app in iTunes Connect
oh and in case you delete your app but lose your name:
http://hesh.am/2012/01/recovering-a-deleted-app-name-in-itunes-connect/

just visit apple developer forum or try out some good blog lonk like part 1 part2 or use ray wenderlich tutorial to submit app on iTunes Store

Are you saying, that the Bundle ID in iTunes Connect and the one in your project settings are different from one another? If so, you should make them identical. My advise is to remove remove the app from iTunes connect and go trough the setup from start. When you do it, make sure you enter the same App ID as the one in Xcode.
Good luck!

See Apple's published steps to resolve this error here.
The older wording of this same error was:
Bundle identifier: (x) differs from reserved bundle identifier: (y)

Related

Testing apps on iOS 6 device using the wildcard provisioning profile

I have spent the past 5 hours trying to make this work but unfortunately all attempts have failed. The process of testing apps on an actual iPhone is extremely frustrating for beginners such as myself compared to other platforms so I am hoping you guys can give me hints on what I am doing wrong here.
I have registered for an iOS developer account and paid the $99 and my account creation is completed. After letting Xcode do certificate registration, adding device and provisioning profiles I have the following automatically created for me:
In the developer portal - Certificates, Identifiers & Profiles
Under Certificates I have the following created:
iOS Development
iOS Distribution
Under Identifiers I have the following created:
Xcode iOS Wildcard App ID
Under Devices I have the following created:
My iPhone Name with its UDID
Under Provisioning Profiles I have the following created:
iOS Team Provisioning Profile with its App ID set to Xcode iOS Wildcard App ID (*)
From what I've read, I should be able to test apps without having to create a new App ID as long as they don't use certain features that require App ID such as push notification.
So I went on and I created a new project in Xcode called HelloWorld. Running the application caused the error: Code Sign error: A valid provisioning profile matching the application's Identifier 'com.test.HelloWorld' could not be found
After reading some more articles (which all of them seem to be outdated as none reflect the new UI of the apple developer portal) I have done the following in Xcode:
Under Build Settings -> Code Signing and I set it to iPhone Distribution: MyName (XXXXXXX)
but that didn't fix anything.
So in short my question is how do I deploy and test an application to my device using this wildcard provisioning profile?
All you really have to do is: Open Xcode, Open "Window -> Organizer".
Go to "Provisioning Profiles".
Click "Refresh" bottom right.
Log in with your dev Apple ID and Xcode will generate all required profiles
Follow these steps (omit if you have done any of these, and I'm assuming that you've already created the certificates)
1 - Create a wildcard AppId e.g com.yourcompany.test.*
2 - Create a provisioning profile (development) using this identifier
3 - Set identifier of your app to com.yourcompany.test.myapp
4 - Build & run it will work.
First Check you have a valid status in your xcode>organiser
and you are signing with right dev. profile and make sure all your devices are added in the profile.
In Xcode 6 you need to go to Xcode->Preferences.., go to the Accounts tab and select your apple id, then press "View details..". Finally press the refresh button.

Bundle Identifier differs from prior bundle identifier

So this really put headache on my head and I finally gave up and posted question here. I am trying to update one of my client Application in iTune store and we are facing below error while uploading to App store.
So, I already tried couple of solution by creating new app id with the bundle sid id twice. Also delete all old profile etc. But nothing worked yet.
1). iTunes Connect App Bundle ID = 8X8ZP823D6.com.pregnancytoolspro.55freebabysamples
2). Info.plist Bundle ID = com.pregnancytoolspro.55freebabysamples
3). Provision profile ID = 8X8ZP823D6.com.pregnancytoolspro.55freebabysamples
When I Changed Info.plist App ID to com.pregnancytoolspro.55freebabysamples then it show me provision profile active in the list.
If I changed Info.plist App ID to 8X8ZP823D6.com.pregnancytoolspro.55freebabysamples then it doesn't show me provision profile active in the list.
When I build app and upload to App store it pop up this message and I can't understand how it should be in info.plist and in provision profile so that it can match iTunes Bundle ID.
Is anyone faced this problem before ? Please help me out.
We contacted Apple support and they said they will have to change Bundle Identifier in the App we have added in our account. So probably Apple will solve this critical issue.
I've had this issue before. It has to do with the different versions saved in the info.plist.
There is a version and build identifier.
Apple doesn't really care about the version as much as the build number. If you have submitted your app with a build number, the update must be 1 greater for the update to work. It isn't all that clear how that works, but that is how I got my update to go through. You should be able to find out what these were in iTunesConnect so you can increment them correctly.

Give iPhone archive to distributor

I've developed an application for an extern distributor. Now, they want to publish the application.
I decided to create an xcarchive of the complete app with Xcode. But I have problems with the bundle identifier. Have I to choose an identifier and the distributor creates the provisiong profile and the certificate?
Would be great if you can tell me what I have to look for!
Your Distributor needs to have a "Company" Apple Developer Account.
They invite you to their organization as a "Member"
You accept their invitation.
the next time you login to developer.apple.come you will be presented with a Team droplist (your team and their team)
Select Their team.
Now, go to the iOS provisioning Portal->Certificates. Generate a Developer Certificate. they will have to approve this, so let them know the request is coming.
Once you have a Developer Certificate they will need to make\modify a Developer Provisioning Profile, with your certificate enabled in the Profile, for the AppID in question.
Once this Profile is created you download it.
Now you have their Full Bundle ID (the GUID and the "com.customer.app")
Now you change Code Sign Identity for Release to "iPhone Developer".
You Build and Archive the app using the Developer Provisioning Profile.
In the Organizer you will see the app you just built, right-click on the app and do a "show in finder".
Zip up the .XCARCHIVE file and send it to your Distributor.
They will unzip and double-click on the .XCARCHIVE file, this will import it into their XCode's Organizer.
From Organizer they can ReSign the app for "iPhone Distribution" using the same Bundle ID that was used to compile the app.
They can distribute it as they see fit.
I'll assume that you're using xCode 4 (or above ) for this.
You're going to want to open your scheme editor (The drop down menu next to the 'Run' and 'Stop' button contains this). Select the 'Archive' scheme and make sure that it's building a release (or distribution ) copy of your app and not a debug version.
The speculative part of the question, it's probably different for each distributor, I'm assuming your distributor is already set up as an iOS Developer (ie they can distribute on the app store already) I just set the bundle identifier to something appropriate com.nameOfDistributor.nameOfApp.
In xCode 4 you don't need to worry about any provisioning profiles etc, or certificates, just archive that up and send it to the distributor. Just send them a note of what the bundle ID was, and they should be able to do all the code signing in xCode themselves if they're using xCode 4 that is.
If the distributor is unhappy with that they usually just email us back and we sort it out. But just archive the release build of the app and send it to them letting them know what you used as a bundle id (also let them know the version number if you've been incrementing that as development has progressed).

Is it possible to Test iPhone Application on Actual Device rather than Simulator?

I wants to test my own application to my actual iPhone Device rather then simulator.
So, is there any chance to do so with ?
I have an apple developer account.. But don't know the procedure, Please help me if u have any solutions..
Thanks in advance...
Log in to http://developer.apple.com/iphone/ with your developer id and password.
Then:
http://developer.apple.com/iphone/manage/team/index.action and set up your team.
http://developer.apple.com/iphone/manage/certificates/team/index.action to create your certificate
Download the certificate you just created and double click on it to run Keychain Access and install it.
http://developer.apple.com/iphone/manage/devices/index.action to enter your iPhone's id
http://developer.apple.com/iphone/manage/bundles/index.action create an appID
http://developer.apple.com/iphone/manage/provisioningprofiles/index.action to download a provisioning profile
Drop that provisioning profile onto Xcode
Go into your project's info.plist and change your Bundle identifier to be the same as you used for the provisioning profile, minus everything up to the first "."
Go into your project's Build Info, and select the appropriate Code Signing Profile
I think now you're ready to go. Select an iPhone Device from the pop-up menu in your main project browser window, plug your iPhone in and let Xcode see it, and then Build and Run.
You can, but as iPhone applications need to be signed - you need to be a paid developer. It is then a case of logging into the portal, assigning a test device, application settings and then downloading a provisioning certificate.
The procedure is cumbersome, however it is very well documented.
You need to create your Developer Certificate and a Certificate for your software projects.
Go to http://developer.apple.com/iphone/, log in and click iPhone Developer Program Portal on the right side. You will find a "launch Assistant" there that will guide you through the next steps. It's pretty easy.
You have to join the iPhone Developer Program, which is $99 for the Standard Program, $299 for the Enterprise Program.

Code Sign Error When Building iPhone Application

I am new to iPhone development. I just registered with Apple for the iPhone Developer Program. When I try to build, I am receiving an error:
Code Sign error: a valid provisioning profile matching the application’s identifier could not be found
I'm not sure what is wrong. I tried browsing the Internet but I get confused. Can anyone help me with what I should do?
At first it seems a complex process, but it's pretty straightforward when you've been through it a few times.
In a nutshell the process is this:
(I'm assuming you've set up your iPhone/iPod touch as a test device)
Via the iPhone Developer Portal
Create an App ID
(give your application a name, this is just for reference on the website and nothing to do with your own build of your application)
enter a string to identify it, like com.yourcompany.appname
(this is important and should be the same as in your .plist file inside Xcode)
Click and Save this
Go to Provisioning
There are 2 provisioning profiles you'll need
a) development - so you can install your application on a test device (i.e. your iPhone / iPod touch)
b) distribution - if you want to sell the application via the App Store
You can create the profiles by selecting your App ID, created in the previous step, from the drop down list and clicking Save
In a few moments (usually, though it can be longer) the certificate is available for download. Download this to your Mac and drop it onto the Xcode icon. Sometimes the development profile doesn't work for me like this and I drop it directly into the Organiser window in Xcode that shows my connected device.
Besides, if you are in a team account, team admin need to edit Development Provisioning Profiles, and add modify your certificates privilege.
In Xcode inside 'Edit Project Settings' you can select the certificate you wish to code sign with. Usually for debug I sign with the development certificate. Follow the instructions on the apple site and clone the release profile and call it something like release and sign this with your distribution profile. (You won't be able to load the app onto your phone with the distribution profile selected)
Make sure you select the target device as Device and not Simulator when building for the App Store!
Hope that helps, it's from memory so apologies if I've skipped some small steps.
xcode top left corner make sure you're running as "similator" "iphone"
Did you set up an iPhone provisioning profile for either development, ad hoc distribution, or app store distribution?
If not go to the iPhone developer program portal, which is linked from the developer.apple.com/iphone. Apple has provided a great series of video tutorials.
Just make sure you install the certificates or the profile won't be selectable in the project configuration. When you download the certificates double-click on them to install.
Possibly more use for others seeing this issue on a previously configured dev environment.
This error is also shown if your provisioning profile has expired, in this case you can go through the steps in Neosionnach's answer or you can go to Organizer, click on the profile and click Refresh.
This was the winner for me when I had this issue.
As of July 2012, you can go here:
https://developer.apple.com/ios/manage/overview/index.action
Then launch the "Development Provisioning Assistant." It walks through all the steps outlined by FiddleMeRagged.
You can use this process to create a Wildcard ID, if you're just looking to test your app on your iOS device and don't need to deploy to the App Store right away.