7

I want to create new Identifier in apple developer account but every time I get warning: An attribute in the provided entity has invalid value etc...

I created application in XCode a let XCode automatically assigned by my provisioning profile and add unique bundle id and I let install the app on simulator.

Now I want to set Push Notifications to app. So I have to create new Identifier for the app. If I set Bundle ID in Apple developer Account under Certificates, Identifiers & Profiles > + > AppIDs > App > set description and Bundle ID (Explicit) AND tick checkbox Push Notifications > click to Continue button and finally if I click to Register button Warning appear

An attribute in the provided entity has invalid value An App ID with Identifier 'com.company.appname' is not available. Please enter a different string.

I am pretty sure that Bundle ID is unique because I use it in my app in XCode so why If the bundle Id is registered under my provisioning profile why I can't use same bundle Id for register in Identifiers?

Maybe it is somehow related with Certificates in Keychain Access?

Could somebody help me please?

Have nice a day Petr.


Additional info:

I found out in XCode if I don't use capability Push Notification it is ok But if I add Capability Push Notification in XCode appear me three warning. It is under same bundle ID.

without Capability Push Notifications: enter image description here

With Capability Push Notifications: enter image description here

Petrik-a-dost
  • 223
  • 4
  • 11
  • 1
    Xcode will have already created the profile for you. Look for profiles starting with XC or Xcode. – Paulw11 Mar 17 '21 at 10:56
  • 1
    Yes I know that. I found out in XCode if I don't use capability Push Notification it is ok But if I add Capability Push Notification in XCode appear me three warning: 1) Failed to register bundle identifier The app identifier "com.company.app" cannot be registered to your development team because it is not available. Change your bundle identifier to a unique string to try again. 2) Provisioning profile "iOS Team Provisioning Profile: *" doesn't support the Push Notifications capability. 3) Provisioning profile "iOS Team Provisioning Profile: *" doesn't include the aps-environment entitlement. – Petrik-a-dost Mar 17 '21 at 11:36
  • 1
    I have this same issue but trying to add health kit capabilities. Its gotta be a bug with the auto profile created by xcode but its super annoying – MadeByDouglas Apr 23 '21 at 06:16
  • 1
    Hi, do you remember how you solved the problem? I have the same one when I add a capability and can't sign in no debug mode – Turvy May 18 '22 at 08:17

1 Answers1

0

All you've to do is to change bundle Identifier name only in Apple developer Account under Certificates, Identifiers & Profiles > + > AppIDs > App > set description and Bundle ID (Explicit)(like as come.something.something1 just add "1" at the end of your bundle identifier) AND tick checkbox Push Notifications > click to Continue button and finally click to Register button and it'll be done, and then reuse this new bundle identifier in your Xcode.

Faiz Fareed
  • 1,498
  • 1
  • 14
  • 31