为什么 Xcode 会创建称为“XC Wildcard”的非通配符应用程序 ID?

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

Why does Xcode create non-wildcard app IDs called "XC Wildcard"?

iosxcode

提问by JW.

I removed all my app IDs and provisioning profiles from Apple's Developer site. Then I created a new Xcode 7.3.1 project, and clicked "Fix Issue" next to the "no matching provisioning profiles found" message.

我从 Apple 的开发人员网站上删除了我所有的应用程序 ID 和配置文件。然后我创建了一个新的 Xcode 7.3.1 项目,并单击“找不到匹配的配置文件”消息旁边的“修复问题”。

The app ID it created is called "XC Wildcard", but it's not a wildcard ID; it's set to the bundle identifier of the Xcode project. And the development profile it created is assigned to that app ID.

它创建的应用程序 ID 称为“XC 通配符”,但它不是通配符 ID;它被设置为 Xcode 项目的包标识符。它创建的开发配置文件被分配给该应用程序 ID。

If I change the bundle identifier and click "Fix Issue", it creates a second app ID called "XC Wildcard", with the new bundle identifier, and another development profile for it.

如果我更改包标识符并单击“修复问题”,它会创建一个名为“XC 通配符”的第二个应用程序 ID,其中包含新的包标识符和另一个开发配置文件。

This works, but seems wrong. Shouldn't it be creating an actual wildcard app ID, unless I turn on specific capabilities like Push Notifications?

这有效,但似乎是错误的。它不应该创建一个实际的通配符应用程序 ID,除非我打开推送通知等特定功能?

回答by Karim H

Xcode create "XC Wildcard" to be used for debugging so it matches all app id's

Xcode 创建用于调试的“XC 通配符”,以便它匹配所有应用程序 ID

change deployment configuration from debug to release and Xcode will create a provisioning profile with your app id.

将部署配置从调试更改为发布,Xcode 将使用您的应用程序 ID 创建配置文件。