iOS在App购买功能上说:“有标识符的App ID。应用程序不可用”

时间:2023-01-12 20:35:16

I have created an iOS App ID in iOS Dev Center under Certificates, Identities, and Profiles and enabled it for In-App-Purchases. Let's say its name is App and the id is com.example.app.

我在iOS开发中心的证书、身份和配置文件中创建了一个iOS应用程序ID,并将其用于应用程序内购买。假设它的名字是App, id是com。example。App。

If I view the corresponding app's In-App Purchase capabilities in Xcode 5.0.2 the tool indicates an error and offers to "Add the In App Purchase entitlement to Your App ID" in the form of a "Fix Issue" button. If I press the button I receive this error message:

如果我在Xcode 5.0.2中查看相应应用的内购功能,该工具会显示一个错误,并以“修复问题”按钮的形式提供“将内购授权添加到应用ID”。如果我按下按钮,我就会收到这个错误信息:

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

具有标识符com.example的应用程序ID。应用程序不可用。请输入另一个字符串。

How can I overcome this problem? The identifier com.example.App seems to be derived from the targets bundle identifier, whose suffix seems in turn derived from the project name. Those should not change.

我如何克服这个问题?com . example。标识符App似乎是从目标bundle identifier衍生而来的,目标bundle identifier的后缀似乎是从项目名称衍生而来的。那些不应该改变。

And why does Xcode not pick up the existing App ID that I've already created in iOS Dev center. It spells app in lower case, but I understand that shouldn't matter, and in any case it does not seem to be possible to replace it with an upper-case version because this would require deletion of an app id first, which seems impossible.

为什么Xcode不能接收我在iOS Dev center中创建的现有应用ID呢?它拼写的是小写的app,但我理解这并不重要,而且无论如何也不可能用大写版本来替换它,因为这需要首先删除应用id,这似乎是不可能的。

So how can I fix the issue in Xcode (e.g. by directly editing capabilities) and what is the recommended workflow between Xcode and iOS Dev Center for adding capabilities in the first place?

那么,如何在Xcode中解决这个问题(例如,通过直接编辑功能),以及在Xcode和iOS开发中心之间推荐的工作流程是什么?

1 个解决方案

#1


3  

Just specify proper identifier in plist with out appending project name on that,

只需在plist中指定适当的标识符,并在其上添加项目名称,

and make sure you are logged in from correct account.

确保你是从正确的账户登录的。

#1


3  

Just specify proper identifier in plist with out appending project name on that,

只需在plist中指定适当的标识符,并在其上添加项目名称,

and make sure you are logged in from correct account.

确保你是从正确的账户登录的。