An App ID with Identifier 'com.example.app.ext

2019-01-14 01:02发布

I have tried to add extensions to my iOS app, both a today extension and an Apple Watch app. My app has been completed however when submitting my archive I got the error based on my bundle identifiers. I then removed the extensions, added them back, and attempted to resubmit. However, xcode now complained that my provisioning profiles cannot be signed.

"An App ID with Identifier 'com.example.app.extention' is not available. Please enter a different string."

I immediately went to the member center to see if an App ID already exists that prevents me from using it for my extensions. Nothing conflicted with the name, this is what was so bizarre to me. Shouldn't I be able to make the new ID if it doesn't conflict with an old ID? I also removed any provisioning profiles from previous extensions. Still, I could not add either "com.example.app.extention" or "com.example.app.watchkitextension."

I decided to just create new app IDs, following a new naming convention like "com.example.app.extentions.watchkitextension." or "com.example.app.extentions.todayextention." Everything worked fine, and built fine. I installed on my devices, things were good. My archive even was validated. However, upon submission I am given the error:

ERROR ITMS-90347: "Bad bundle identifier. The bundle identifier "xxx.yyy.zzz" of the application extension xxx.app/Plugins/xxxExtension.appex should start with the application's bundle identifier "xxx" and not contain more than one period "." after the application bundle ID.

This means I have to use the naming convention "com.example.app.extention" that xcode and the member center will not allow me to create the proper IDs.

I am extremely frustrated, can someone please help. I cannot find a solution anywhere.

EDIT

It seemed that I was actually not able to use that identifier at all.

Also, I should note a couple of warnings for anyone with this message:

1) You cannot add anything before the extension of it includes a period, as in com.domain.app.extensions.extension won't work either. 2) The automatics Swift 2 converter has a tendancy to change identifieres to more standard names and try to let xcode work out the provisioning profiles. Be careful of this!

The only fix I had was to change the identifier name for good. I personally used com.domain.app.todayextension. I got it to work then, but only after installing and adding the correct provisioning profiles for development and distribution through the member center. It appears to be a bug in Apple's system, or maybe we all have absolutely no idea how provisioning profiles work. I think the latter is probably what is true. Anyway, I hope that helps!

15条回答
来,给爷笑一个
2楼-- · 2019-01-14 02:02

As far as I know, a bundle ID must have the form com.yourCompany.yourApp. App IDs are used to identify your app among all other millions of apps on the store and have to be unique.

Someone probably already created this ID com.example.app.extention. This is why you are seeing the error message.

You must used something unique, that identifies your company and your app or you and your app.

查看更多
地球回转人心会变
3楼-- · 2019-01-14 02:05

Update xCode - these issues normally trigger a thought in my head to update. Normally fixes provisioning issue. Worked for me.

查看更多
趁早两清
4楼-- · 2019-01-14 02:06

Xcode to 7.3

I have encountered this issue when archiving and in my case, downloading all provisioning profiles on preferences cant fix this so I update it.

Try to check your app's Provisioning Profile on Member Center.

Go to Developer > Certificate, IDs & Profiles > Provisioning Profiles > All

Look for your app's Development and Distribution Profile, check if status is Invalid then Edit,

Modify your profile contents and select the Generate button to save changes

Finally, Go to Xcode> Preferences > [Apple account] > View Details and Download All to refresh your provisioning profiles

Clean. Build. Archive. Success ! Hope it helps :)

查看更多
登录 后发表回答