配置文件与应用程序标识符 com.domainname.helloworld 不匹配

发布于 2025-01-02 11:29:52 字数 482 浏览 1 评论 0原文

我尝试在客户端设备中运行 HelloWorld 项目,Xcode 中的应用程序标识符是:com.domainname.HelloWorld,当我创建配置文件时,在 AppID 中,我输入了:com.domainname.helloworld(小写)。

现在,在 Xcode 中,我尝试将代码签名身份分配给我创建的配置文件,但是,在下拉列表中,我可以看到配置文件,但无法选择它。

在此处输入图像描述

我正在关注 本教程,我怀疑我不知道如何不要忘记将新的配置文件添加到 Xcode 中。

你能帮我一下吗?提前致谢。

I try to run a HelloWorld project into my client device, the application identifier in Xcode is: com.domainname.HelloWorld, and when i created the provisioning profile, in the AppID, i have putted: com.domainname.helloworld (lower case).

Now, in Xcode, i try to assign the code signing identity to the provisioning profile i have created, however, in the drop list, i can see the provisioning profile but i can't select it.

enter image description here

I am following this tutorial and i have doubt i didn't knew how to Don’t forget to add the new provisioning profile to XCode as well.

Can you please help me there? thanx in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

美人如玉 2025-01-09 11:29:52

BundleId 区分大小写。

确保在 Info.plist 中将其命名为 com.domainname.HelloWorld

来自 Apple 文档

通常,Xcode 项目中的包 ID 是一个字符串格式
作为反向域名,例如 com.MyCompany.MyProductName,其中
将 MyCompanyName 和 MyProductName 替换为您的域,然后
产品名称。然而,与域名不同的是,应用程序 ID 和捆绑包 ID 是
区分大小写。

BundleIds are case-sensitive.

Make sure you call it com.domainname.HelloWorld in your Info.plist.

From Apple Documentation:

Typically, the bundle ID in your Xcode project is a string formatted
as a reverse-domain name such as com.MyCompany.MyProductName, where
you replace MyCompanyName and MyProductName with your domain and
product name. However, unlike domain names, app IDs and bundle IDs are
case sensitive
.

小耗子 2025-01-09 11:29:52

我的应用程序 Extinct Birds 也有同样的问题,Xcode 在应用程序目标 -> 捆绑标识符中添加了带有项目名称的禁用后缀
在项目 Info.plist 中找到它的方法是搜索 CFBundleIdentifier
文件中获得以下文本条目

您可能会从CFBundleIdentifier
com.softwebsys.ExtinctBirds${PRODUCT_NAME:rfc1034identifier}

对我来说,从字符串中删除 ${PRODUCT_NAME:rfc1034identifier} 效果很好。这是我的最终条目
CF包标识符
com.softwebsys.ExtinctBirds

I had the same problem with my application Extinct Birds, Xcode adds disabled suffix with project name in Application Target->Bundle Identifier
Way to find this in your project Info.plist is by searching for CFBundleIdentifier
You may get the following text entry form the file

CFBundleIdentifier
com.softwebsys.ExtinctBirds${PRODUCT_NAME:rfc1034identifier}

For me removing ${PRODUCT_NAME:rfc1034identifier} from the string worked well. Here is my final entry
CFBundleIdentifier
com.softwebsys.ExtinctBirds

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文