Xcode 分发配置文件的问题

发布于 2024-11-26 12:41:20 字数 794 浏览 3 评论 0原文

我在 XCode 中的分发配置文件方面遇到问题。经过一整天的阅读和关注 iOS 配置门户,并广泛搜索该问题后,我正在寻求帮助。

在我看来,我必须满足以下条件才能在 App Store 上分发应用程序: 1)我必须在我的构建中定位一个设备(即不是模拟器)。 2) 必须在 XCode Organizer 中使用 Distribution Provisioning Profile 配置目标设备。

但根据我迄今为止的经历,我似乎无法通过配置门户满足这些条件:

1)我创建了一个分发配置文件。 2) 表示零个设备。 3)当我尝试编辑它时,当选择“App Store”作为“分发方法”时,设备会显示为灰色,但选择“Ad Hoc”时则不会。所以我无法添加用于 App Store 分发的设备。 4) 我下载了分发配置文件(.mobileprovision 文件)。 5) 在 XCode 的 Organizer 中,当我尝试将配置文件添加到我的设备时,我下载的分发配置文件显示为灰色。

我担心分发配置文件指示零个设备。是因为只有开发配置文件才能指示设备吗?

我还担心无法将下载的分发配置文件添加到 XCode Organizer 中的设备。开发配置文件不会显示为灰色。这是因为只能将开发配置文件添加到设备中吗?

当我进行构建时,我确保代码签名部分指定“iPhone Distribution”,并指示我的分发配置文件。构建成功完成,但我收到以下错误,并且程序将无法在设备上运行:

“找不到此可执行文件的有效配置文件”

我一定错过了一些东西,因为许多其他人已经成功完成了此操作。有人可以指出我遗漏了什么或做错了什么吗?

非常感谢任何帮助。

I'm having a problem with a Distribution Provisioning Profile in XCode. After an entire day of reading and following the iOS Provisioning Portal, and googling the issue extensively, I'm looking for help please.

It appears to me that I must satisfy the following conditions in order to distribute an app on the App Store:
1) I must target a DEVICE (i.e. not a simulator) in my build.
2) The targeted device must be configured in the XCode Organizer with a Distribution Provisioning Profile.

But I can't seem to satisfy these conditions through the Provisioning Portal, based on what I've experienced so far:

1) I created a Distribution Provisioning Profile.
2) It indicates zero devices.
3) When I attempt to edit it, Devices are grayed out when "App Store" is selected as the "Distribution Method", but not when "Ad Hoc" is selected. So I can't add devices for App Store distribution.
4) I downloaded the Distribution Provisioning Profile (.mobileprovision file).
5) In XCode's Organizer, when I attempt to add a Provisioning Profile to my device, the Distribution Provisioning Profile that I downloaded is grayed out.

I'm concerned that the Distribution Provisioning Profile indicates zero devices. Is it because only Development Provisioning Profiles can indicate devices?

I'm also concerned that I can't add the Distribution Provisioning Profile that I downloaded to the device in the XCode Organizer. DEVELOPMENT Provisioning Profiles do not appear grayed out. Is that because only Development Provisioning Profiles may be added to a device?

When I do the build, I made sure that the Code Signing section specifies "iPhone Distribution", and indicates my Distribution Provisioning Profile. The build completes successfully, but I get the following error and the program will not run on the device:

"a valid provisioning profile for this executable was not found"

I must be missing something, as many other people have done this successfully. Can someone please point out what I am missing or doing wrong?

Any help is greatly appreciated.

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

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

发布评论

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

评论(1

暮倦 2024-12-03 12:41:20

你的第二个假设是错误的。您不必在分发配置文件中定位设备。从计算机上拔下设备,在方案选择器中选择分发配置文件和目标 iOS 设备并构建(无需运行)。然后可以将结果压缩并上传到苹果。

Your second assumption is wrong. You don't have to target a device in the distribution profile. Unplug the devices from your computer, select the distribution profile and target iOS device in the scheme selector and build (without run). The result can then be zipped and uploaded to apple.

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