xcode 具有标识符 ... 的应用程序组不可用。请输入其他字符串

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34071154/
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-09-15 08:17:00  来源:igfitidea点击:

An Application Group with identifier ... is not available. Please enter a different string

iosiphonexcode

提问by helloB

I am working on a shared Xcode codebase for the first time, and trying to run the app on my phone. I am signed in to my developer ID, and I had to rename all the Bundle identifiers. However, now the app is not launching because it says

我第一次在共享 Xcode 代码库上工作,并尝试在我的手机上运行该应用程序。我已登录到我的开发人员 ID,并且必须重命名所有 Bundle 标识符。但是,现在该应用程序没有启动,因为它说

An Application Group with identifier 'your name here' is not available. Please enter a different string.

标识符为“您的姓名”的应用程序组不可用。请输入不同的字符串。

Where can I change the name of the Application Group?

在哪里可以更改应用程序组的名称?

Also I have tried the instructions here to change the Product Name: How to change the name of an iOS app?but actually in my project I see there is no product name, so this doesn't seem to be the right way.

我也尝试了此处的说明来更改产品名称:如何更改 iOS 应用程序的名称?但实际上在我的项目中我看到没有产品名称,所以这似乎不是正确的方法。

回答by Artisani

From your error message I can determine that your chosen App Group ID is unfortunately used by someone else outside of your team. And based on that you need to:

根据您的错误消息,我可以确定您选择的应用程序组 ID 不幸被您团队以外的其他人使用。基于此,您需要:

Create a new App Group:

创建一个新的应用程序组:

Create a new App Group with another ID, i.e. group.com.company.newappgroupname. The smoothest way is to open your project in XCode, then open your targetinformation and then open the Capabilitiestab. Here you'll find your team's App Groupsand the possibility to add new ones (by clicking the + sign). This is also where you choose that you're app will "join" the specific App Group by checking the check box.

使用另一个 ID 创建一个新的应用程序组,即group.com.company.newappgroupname。最流畅的方法是open your project in XCode,然后打开您的target信息,然后打开Capabilities选项卡。在这里,您将找到您的团队App Groups以及添加新团队的可能性(通过单击 + 号)。这也是您通过选中复选框选择您的应用程序将“加入”特定应用程序组的地方。

Extra - If you want to delete an App Group:

额外 - 如果要删除应用程序组:

This can't be done in XCode, so then you need to log in to the Apple Developer Portaland click on 'Certificates, Identifiers & Profiles'. Then find your way to Identifiers -> App Groups on your left. Now all your team's App Groups are listed on your right. Click once on one of the App Groups and choose to delete it. NOTE: This also the place to edit the App Group Name, but observe that the name is different from the App Group ID. The error message in the question refers to the ID being taken!

这在 XCode 中无法完成,因此您需要登录Apple Developer Portal并单击“Certificates, Identifiers & Profiles”。然后找到左侧的标识符 -> 应用程序组。现在您团队的所有应用程序组都列在您的右侧。单击应用程序组之一并选择将其删除。注意:这也是编辑 App Group Name 的地方,但请注意名称与 App Group ID 不同。问题中的错误信息是指正在使用的ID!