ios 标识符为“com.example.app.extention”的应用 ID 不可用。请输入其他字符串

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32346717/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 07:28:57  来源:igfitidea点击:

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

iosiphonexcodeprovisioning-profileapp-id

提问by modesitt

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.

我尝试向我的 iOS 应用程序添加扩展程序,包括今天的扩展程序和 Apple Watch 应用程序。我的应用程序已经完成,但是在提交我的档案时,我收到了基于我的包标识符的错误。然后我删除了扩展名,重新添加了它们,并尝试重新提交。但是,xcode 现在抱怨我的配置文件无法签名。

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

“标识符为 'com.example.app.extention' 的应用 ID 不可用。请输入其他字符串。”

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."

我立即前往会员中心查看是否已存在阻止我将其用于扩展程序的 App ID。没有什么与名字冲突的,这对我来说太奇怪了。如果新 ID 与旧 ID 不冲突,我不应该能够制作新 ID 吗?我还从以前的扩展中删除了任何配置文件。尽管如此,我还是无法添加"com.example.app.extention"或“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:

我决定只创建新的应用程序 ID,遵循新的命名约定,如"com.example.app.extentions.watchkitextension.""com.example.app.extentions.todayextention."一切正常,并且构建良好。我安装在我的设备上,一切都很好。我的档案甚至得到了验证。但是,提交后我得到了错误:

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.

错误 ITMS-90347:“错误的包标识符。应用程序扩展 xxx.app/Plugins/xxxExtension.appex 的包标识符“xxx.yyy.zzz”应该以应用程序的包标识符“xxx”开头,并且不能包含超过一个句点“.”在应用程序包 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.

这意味着我必须使用"com.example.app.extention"xcode 和会员中心不允许我创建正确 ID的命名约定。

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!

1) 在扩展名包含句点之前不能添加任何内容,因为在 com.domain.app.extensions.extension 中也不起作用。2) 自动 Swift 2 转换器倾向于将标识符更改为更标准的名称,并尝试让 xcode 计算出配置文件。小心这个!

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 distributionthrough 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!

我唯一的解决方法是永久更改标识符名称。我个人使用 com.domain.app.todayextension。然后我让它工作了,但只有在通过会员中心安装并添加正确的配置文件以进行开发和分发之后。这似乎是 Apple 系统中的一个错误,或者我们都完全不知道配置文件是如何工作的。我认为后者可能是真的。无论如何,我希望有帮助!

采纳答案by Pramuka Dias

I found the solution from Apple developer forums.

我从 Apple 开发者论坛找到了解决方案。

Apple has just updated their Dev Center CGU. It seems that the app extension bundleId is stricter.

Apple 刚刚更新了他们的开发中心 CGU。应用扩展 bundleId 似乎更严格。

if your app bundleId format is : com.my.app

如果您的应用程序 bundleId 格式为:com.my.app

your app extension bundleId now have to be : com.my.app.XXX

您的应用扩展 bundleId 现在必须是:com.my.app.XXX

Creating new appID and provisioning profile fix the issue.

创建新的 appID 和配置文件可解决此问题。

Check this link https://forums.developer.apple.com/thread/15712

检查此链接https://forums.developer.apple.com/thread/15712

回答by Imran

Version 7.3 (7D175)

7.3 版 (7D175)

The Application ID Name should be same as application bundle identifier, if you application bundle identifier is com.abc.xyz than the application ID name for this bundle ID should be XC com abc xyz

应用程序 ID 名称应与应用程序包标识符相同,如果您的应用程序包标识符是 com.abc.xyz,则此包 ID 的应用程序 ID 名称应为 XC com abc xyz

A name in any other format won't be seen by Xcode.

Xcode 不会看到任何其他格式的名称。

If your application is already on app store and you are submitting update than just change the app ID name accourding to above formate and it will work

如果您的应用程序已经在应用程序商店并且您正在提交更新而不只是根据上述格式更改应用程序 ID 名称,它就会起作用

enter image description here

在此处输入图片说明

回答by Azel

Xcode to 7.3

Xcode 到 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

转到开发人员 > 证书、ID 和配置文件 > 配置文件 > 全部

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

查找您的应用程序的开发和分发配置文件,检查状态是否为Invalid然后Edit

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

修改您的配置文件内容并选择“生成”按钮以保存更改

Finally, Go to Xcode> Preferences > [Apple account] > View Detailsand Download Allto refresh your provisioning profiles

最后,转到 Xcode> Preferences > [Apple account] > View Detailsand Download All以刷新您的配置文件

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

干净的。建造。档案。成功 !希望能帮助到你 :)

回答by ylgwhyh

I also encountered the same problem. Xcode7.2.1. enter image description hereEffective solution is:

我也遇到了同样的问题。Xcode7.2.1。 在此处输入图片说明有效的解决办法是:

enter image description here

在此处输入图片说明

回答by Robert Wagstaff

Here is what worked for me on Xcode 7.3:

这是在 Xcode 7.3 上对我有用的内容:

Check Devices in the Apple Developer member centre. Once a year you have the opportunity to reset the devices. After reseting devices you will notices your Xcode managed provisioning profile is invalid. To update this I went into Xcode > Accounts -> my Apple ID -> View Details and downloaded all provisioning profiles. I then built to device and then downloaded the provisioning profiles again for good measure

在 Apple Developer 会员中心检查设备。每年一次,您有机会重置设备。重置设备后,您会注意到 Xcode 管理的配置文件无效。为了更新这个,我进入了 Xcode > Accounts -> my Apple ID -> View Details 并下载了所有的配置文件。然后我构建到设备,然后再次下载配置文件以获得良好的测量

回答by Kanchan

I can see lot's of great answers,

我可以看到很多很棒的答案,

I tried a few of them but no luck, finally I used "Use local signing assets"option to export ipa and it works for me.

我尝试了其中的一些但没有运气,最后我使用“使用本地签名资产”选项来导出 ipa,它对我有用 。

Hopefully this will help someone.

希望这会帮助某人。

enter image description here

在此处输入图片说明

回答by ethante

I had almost the same problem, i was using Xcode 7.3 and trying to compile it but the build failed all the time, so the problem was for me that i needed to make a developer provisions profile and an appstore provisions profile for the same app so i could use fastlane to release it and build it in xcode.

我遇到了几乎相同的问题,我正在使用 Xcode 7.3 并尝试编译它,但构建一直失败,所以问题是我需要为同一个应用程序制作开发人员配置文件和应用商店配置文件我可以使用 fastlane 来发布它并在 xcode 中构建它。

After this i did the following:

在此之后,我做了以下事情:

  1. Open Xcode
  2. Xcode preferences
  3. Open team
  4. Download all missing profiles
  5. Clean
  6. Build
  7. Run fastlane
  1. 打开 Xcode
  2. Xcode 首选项
  3. 公开组
  4. 下载所有丢失的配置文件
  5. 干净的
  6. 建造
  7. 运行快车道

回答by Maheep

I tried it with production provisioning profile, works for me.

我使用生产配置文件进行了尝试,对我有用。

回答by TWilly

I had to delete the app id from the developer console and let XCode re-create the app id for me.

我不得不从开发者控制台中删除应用程序 ID,让 XCode 为我重新创建应用程序 ID。

回答by Kunal Gupta

I faced the same problem when i upgraded my Xcode to 7.3 and it showed me the same error in every project. The simplest solution that i found was to just the remove the apple account from Xcode and add it again.

当我将 Xcode 升级到 7.3 时,我遇到了同样的问题,它在每个项目中都显示了相同的错误。我发现的最简单的解决方案是从 Xcode 中删除苹果帐户并再次添加它。

To remove just go to Xcode > Preferences > Select the account and click on - sign.

要删除只需转到 Xcode > 首选项 > 选择帐户并单击 - 签名。

enter image description here

在此处输入图片说明

If in case this still doesn't work . Then perform a next step of downing your provisioning profile again and run it.

如果这仍然不起作用。然后执行下一步再次关闭您的配置文件并运行它。

Hope this helps. All the best

希望这可以帮助。祝一切顺利