How to change the bundle identifier in xcode - ios

I want to publish my app on iTunes.When i enter the app name and bundle id it shows an error that app name and app id is already benn used.I searched on it and only solution i got is to change tha app name and bundle id.
But the app id should be the same as bundle identifier in our xcode project.So can anyone tell me how to change the bundle identifer in the xcode project.

Goto the settings of your app target. Under general section you can change your bundle identifier. Usually bundle identifier goes like com.companyID.appName

Try to change in your app target -> General -> Identity -> Bundle Identifier.
But if app name is written in gray color there then it is likely because you have a product name variable, something like .${PRODUCT_NAME:rfc1034identifier}, appended to the end of your bundle identifier under Target (your application) > Info (info.plist). Try removing that.

Related

Xcode: Change Bundle Identifier Case with automatically managed signing

Xcode 8 seems to have the convention that the bundle identifier follows the case of the app name e.g. com.test.AppName. However in our team it is convention to have it all lowercase. After we created a new project we tried to change the case of the bundle id but with no success. What we tried:
1) Tried to change it in Xcode
We changed it to lowercase and then changed some capabilities. The result was the error:
The app ID "com.xyz.xyz" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
2) Delete in the developer account
There seems no possibility to delete an automatically generated bundle ID online.
Is there any way to fix this?

No matching provisioning profiles found error when uploading to app store

I was trying to upload new version of my app but I encounter an error like:
I am using automatically manage signing:
Can anyone help? Thank you
I figured out, it was due to the product bundle identifier under the build setting was different from the one in info.plist
We need to check product bundle identifier in below things
1.in Plist set your app bundle identifier
Bundle identifier String com.domainName.projectName
2.Product Bundle Identifier in Project and Target
You need to set app bundle identifier in Build Settings of Project
Then you need to set app bundle identifier in Build Settings of Target

What is the difference between Bundle Identifier and Product Bundle Identifier?

I want to know the difference between the bundle Identifier (in info.plist).
And the Product Bundle Identifier (in the Build Setting -> Packaging -> Product Bundle Identifier).
Thanks in advance .
BUNDLE IDENTIFIER is the namespace of your app, must be unique in the App Store world
PRODUCT_BUNDLE_IDENTIFIER is a variable in your project.pbxproj file. Apple says from the Xcode 7 release notes that PRODUCT_BUNDLE_IDENTIFIER is now "the recommended place to set the Bundle Identifier for a target." So if you're using BUNDLE_IDENTIFIER anyplace else in your project, you have to change it to PRODUCT_BUNDLE_IDENTIFIER to keep things in sync.
Bundle Identifier -
This is unique identifier for your application. Operating System uses this to uniquely identify your app. On App Store, every app has this as unique.
CFBundleIdentifier (String - iOS, OS X) uniquely identifies the
bundle. Each distinct app or bundle on the system must have a unique
bundle ID. The system uses this string to identify your app in many
ways. For example, the preferences system uses this string to identify
the app for which a given preference applies; Launch Services uses the
bundle identifier to locate an app capable of opening a particular
file, using the first app it finds with the given identifier; in iOS,
the bundle identifier is used in validating the app’s signature.
The bundle ID string must be a uniform type identifier (UTI) that
contains only alphanumeric (A-Z,a-z,0-9), hyphen (-), and period (.)
characters. The string should also be in reverse-DNS format. For
example, if your company’s domain is Ajax.com and you create an app
named Hello, you could assign the string com.Ajax.Hello as your app’s
bundle identifier.
Product Bundle Identifier -
This is a variable in Xcode Project File, form XCode 7.0 Apple recommends to set Product Bundle Identifier and then user $(PRODUCT_BUNDLE_IDENTIFIER) in CFBundleIdentifier in Info.plist
The new build setting Product Bundle Identifier
(PRODUCT_BUNDLE_IDENTIFIER) is the recommended place to set the Bundle
Identifier for a target. The target’s Info.plist should be configured
to use this build setting by referencing it as
$(PRODUCT_BUNDLE_IDENTIFIER) in the value for the CFBundleIdentifier
key.

Can't edit Bundle Identifier

Apple reject my app because I choose appid with In-app purchase but I don't use it. So I created wildcart id with com.domain.*. But ı can't use it. Please help. Thank you.
I download my provisioning profile. And trying to drop over the project in XCode. But the Bundle identifier doesn't change.
My app id is com.domain.*
In Xcode bundle identifier is com.domain.appname.
What should I do?
In the info tab of your Target, change your bundle identifier. The wildcard simply means that you can use any value, not just an asterisk. For example, com.myappcompany.ourfirstapp is a valid identifier for the com.myappcompany.* identifier.
Please go to info tab in Target of your application and change bundle identifier from there.

Bundle identifier changed after changing application name

a little stuck here,
I changed the name of my application, the bit that will show under the icon on a device, bundle identifier right ? I want to submit an update to my app, but now my bundle identifier is different, and there is no code signing identity profile to select to validate/distribute. How do I go about submitting my app if the identifiers are different?
Really confused
any help would be much appreciated
thanks
By default your bundle identifier is com.yourcompany.${PRODUCT_NAME:rfc1034identifier} in your Info.plist (Bundle identifier key), if you change PRODUCT_NAME you change also your bundle identifier. You can specify other bundle identifier in Info.plist which you can find in Project Navigator. To change the name of application in Spring Board (under icon) you have to change Bundle display name in Info.plist. For more details about Info.plist read apple documentation:
https://developer.apple.com/library/ios/#documentation/General/Reference/InfoPlistKeyReference/Introduction/Introduction.html

Resources