Profile doesn't match bundle identifier - ios

So I'm trying to submit an app to the app store. This is my first app so I think I jumbled it somewhere.
In iTunesConnect, my BundleID is com.mywebsite.appname
I created a distrubition profile through the Provisioning Portal with the same app ID that I used to create the BundleID in itunesConnect. When I try to code sign my release build, I see this:
AppName (for bundle identifiers 'com.mywebsite.AppName')
profile doesn't match bundle identifier 'mywebsite.AppName'
From googling, it looks like that the bundle ID is case sensitive. I tried creating another app ID in the dev portal as appname, but it didn't seem to matter since now in the dev portal, I have two apps called Appname. Even though it let me add another app ID, it displays them the same with the first letter as caps, and the rest not. So what do I need to do in order to get my profile to match the bundle id. And which bundle id do I need to match, the one on iTunesConnect?
Lastly, I want to make sure that the name of my app underneath the icon on the iPhone doesn't show up in lowercase. Is that possible? Thanks!

This screenshot shows you where in Xcode to set the Bundle Identifier:

Related

developer.apple.com change bundle ID

I have an iOS project which is listed on developer.apple.com, so it has a certificate, but it has no bundle ID. It has never been submitted to iTunes Connect. I have added the ID to Xcode, but iTunes Connect does not see it. Therefore I cannot submit it. I can't see any way to add the ID on developer.apple.com. So as far as I can see, there is no way to get iTunes to let me submit it.
It turned out that somehow, the app had been changed from targeting iPhone/iOS to targeting Mac/Os/X. Therefore the bundle identifier did not show up in XCode. So I could not even assign one to the app. After I figured that out and put in a proper bundle ID, I did basically as ldindu suggested: deleted the old app ID and created a new one with the correct bundle ID, and got new profiles.

How to completely remove bundle id in iOS development?

How can I reuse the bundle ID I have created for the app ID? I even delete the associated app ID but the bundle ID still unavailable.Does it to say bundle ID couldn't be removed completely once created?
The bundle id can't be reused as exact. For example com.abc.xxx can be used only once. If you had created this app Id from one account, you can't create the same app Id from the other account. However, you will still be able to create a new one as com.abc.xxx1 like or so. There should be atleast 1 character difference in the app Id's
If you want to delete an app ID, follow these steps:
Open https://developer.apple.com and enter using your credentials.
Click on Identifiers under the Certificates, Identifiers & Profiles section.
Now click on the App ID you want to Delete.
Click on Remove next to Edit your App ID Configuration.
Again click on Remove in the confirmation message that opens.
I'm not sure what your exact scenario is, you didn't provide enough information to know that. However, I came across a similar problem which was as follows:
Some time ago I registered a new Apple Account and created an iOS app with it. I did not pay for that, i.e. the app could only ever be used for 7 days. I've never submitted that app to the app store. Nonetheless, the bundle identifier of the app was associated with that particular account.
Some time later I registered another Apple Account. This time with a payed subscription. When I attempted to sign the app I created with the first account, Xcode complained as follows:
Failed to register bundle identifier. The app identifier "xy" cannot be registered to your development team because it is not available.
and
No profiles for 'xy' were found. Xcode couldn't file any iOS App Development provisioning profiles matching 'xy'.
It seems that the bundle identifier gets strictly associated with the provisioning profile of the first account. The way to solve this is to delete that particular provisioning profile. You can do so by going to the following folder and deleting the corresponding file in that folder:
~/Library/MobileDevice/Provisioning Profiles/

Provisioning profile does not match bundle identifier

i have run in iphone is ok, but i try to build it and upload, it get this error, how can i fix it, thanks!
Code Sign error: Provisioning profile does not match bundle
identifier: The provisioning profile specified in your build settings
(“PicKey Distribution”) has an AppID of “com.KKApps.PicKey” which does
not match your bundle identifier “com.KKApps.PicKey.MyKeyBoard”.
CodeSign error: code signing is required for product type 'App Extension' in SDK 'iOS 8.0'
At the creation of your Provisioning profile on the Developer Portal you have provided the app id com.KKApps.PicKey
Your Bundle identifier has to be strictly identical to the one you provided for the Provisioning profile, with no additions after like the .MyKeyBoard
Two solutions for you
1. In your case, with an explicit app ID : You change your app bundle identifier to com.KKApps.PicKey to match the Provisioning profile App ID
2. Use an You create a new App ID com.KKApps.PicKey.* and change the Provisioning profile to link to it (or create a new one). The * is a wildcard allowing to match multiple apps
With solution 2 you will be able to create apps with Bundle Identifier starting with com.KKApps.PicKey.
For exemple com.KKApps.PicKey.MyKeyBoard, or com.KKApps.PicKey.MySuperApplication
Apple's explanations for APP IDs
Explicit App ID (Example: com.domainname.appname)
If you plan to incorporate app services such as Game Center, In-App
Purchase, Data Protection, and iCloud, or want a provisioning profile
unique to a single app, you must register an explicit App ID for your
app.
To create an explicit App ID, enter a unique string in the Bundle ID
field. This string should match the Bundle ID of your app.
Wildcard App ID (Example: com.domainname.*)
This allows you to use a single App ID to match multiple apps. To
create a wildcard App ID, enter an asterisk (*) as the last digit in
the Bundle ID field.
Change your Watchkit App's Bundle Identifier to your app's bundle identifier, also change your watchkit extension's Bundle Identifier to your App's Identifier.
Also check for the Versions of your main app and watchkit, watchkit extension's versions, both versions should be same.
for more please look into apple docs
https://developer.apple.com/library/ios/technotes/tn2410/_index.html
Hope this will help!!!

Case sensitivity in bundle Identifier and the product name

I'm creating a new project in xCode with the following name "SampleApp"
Bundle identifier becomes like this "com.samplecompany.SampleApp" (Last word has camel casing)
But the App Id in the developer portal is "com.sampleCompany.sampleapp" (All lower case letters).
So, whenever I archive and try to sign a build with the provisioning profile, xCode says that the provisioning profile with the mentioned bundle identifier(com.samplecompany.SampleApp) is not found.(Since the app id is in all lower case format in the developer portal).
I tried to create the app id, "com.samplecompany.SampleApp", but the developer portal throws an error "com.samplecompany.SampleApp" is already taken.
If I go with all lowercase, My app name also becomes lower case.
My app is already in the appstore with all lower cases. So, I'm worried, if I remove the profile and re-create it, it will cause problems in the appstore build.
I'm struck here. How to solve this issue ?
Apple AppDistributionGuide says,
If the App ID is an explicit App ID, it exactly matches the bundle
ID. However, unlike domain names, bundle IDs are case sensitive. If
the App ID is lowercase, your bundle ID needs to be lowercase, too
Note: bundle ID is not what the user will see as the app name. That's the "Bundle Display Name".
The bundle ID is case sensitive. we need to use the app Id and bundle identifier are same. check the Apple Documentation
The bundle ID is not what the user will see as the app name. That's the "Bundle Display Name".You can change the Bundle Display Name to change the icon name displayed in home screen.

Validating IOS Application Archive

I have created an archive for a new version of a product already on the app store. I have incremented the version number to 2. I have created version 2 in tuned.
When I go to Organizer>Archives, I see my correct app name, icon, Version 2, and correct bundle identifier.
When I click VALIDATE then NEXT to log on to iTune connect,I get a dialog saying:
Choose a profile to sign with.
At that point, the application name is wrong (being the name of a test application I created a while ago). This is displayed in a non-changeable label. The provisioning profile looks correct, being the only value in the drop down list.
The validation then fails with three messages:
The bundle is invalid. The bundle identifier is already in use by a different software package.
The bundle identifier cannot be changed from its current value 'Test Bundle'. If you want to change your bundle identifier, you will need to create a new application in iTunes Connect.
The bundle identifier matches the name of the one I create for the test application. However, if I got to General>identity the project has a the correct bundle id (Not 'test Bundle').
In other words, the General>Identify>Bundle Identifier matches the bundle when I am asked to select the bundle identifier. However, the application name does not match the application name of the project and the bundle ID reported in validation errors does not match the bundle ID from General>Identify>Bundle Identifier.
Where is the wrong application name and bundle ID being picked up?
posting from my comment for further reference:
when you create a new app entry in your iTunesConnect.apple.com account, and turned it to "ready to upload binary", what's the bundle id you have used there?
does it match the one in your provisioning profile?
Application Name, version numbers and bundle identifiers should match between iTunesConnect and your binary.(its possible that when you created the app on iTC some other bundle id was selected)

Resources