如何使用 Xcode 4.2 在设备上测试发布版本?
我刚刚完成了应用程序的更新,现在我想将其提交到应用程序商店。
我已经在多个设备上以调试模式对其进行了彻底的测试,但我想使用发布版本对其进行测试,以确保没有出现任何问题。
在 Xcode 4.0.2 中,当我想要测试发布版本(即不分发)时,我只需执行以下操作
- 在项目设置中,确保发布代码签名设置为“iPhone Developer”而不是“iPhone Distribution”
- 转到
编辑方案...
,然后将运行方案更改为发布而不是调试< /强>。 - 确保我的发行版配置文件已安装在 Xcode 中
- 在设备上运行它,确保一切正常。
如果一切正常,我将使用以下内容进行分发:
- 将代码签名更改为“iPhone Distribution”
- 确保存档方案设置为发布
- 存档
- 立即提交
问题是的,对于 Xcode 4.2,我无法在我的设备上测试发布版本。 - 当我构建它并将其发布到我的 iPod 时,我收到一条警报:
找不到此可执行文件的有效配置文件。
因此,我在“设备”窗格的主“库”部分(所有配置文件)下检查了我的配置文件,并在那里找到了我的分发配置文件。
问题是,配置配置文件显示“此配置文件无法安装在设备上”。
那么,如果我无法在设备上使用分发配置文件 - 我应该如何测试发布版本?
对于这个问题,我将不胜感激任何建议 - 抱歉,如果我遗漏了一些明显的东西!
I've just finished writing an update for my app, and now I want to submit it to the app store.
I've thoroughly tested it in debug mode on multiple devices, but I want to test it with the release build just to make sure nothing screws up.
In Xcode 4.0.2, when I wanted to test the release build (i.e. not distribute), I would just do the following
- In the project settings, make sure that the release code signing is set to "iPhone Developer" not "iPhone Distribution"
- Go to
Edit scheme...
, and change the Run scheme to Release instead of Debug. - Make sure my distribution provisioning profile is installed in Xcode
- Run it on the device, make sure everything works.
If it all works, I would then distribute with the following:
- Change the code signing to "iPhone Distribution"
- Make sure the Archive scheme is set to Release
- Archive
- Submit
Now the problem is, with Xcode 4.2, I can't test the release build on my device. - When I build it with release to my iPod, I get an alert:
A valid provisioning profile for this executable was not found.
So, I checked my provisioning profiles under the main "Library" section of the Devices pane (all provisioning profiles), and I found my distribution profile there.
The problem is, the provisioning profile says "This profile cannot be installed on deivces".
So, if I can't use the distribution profile with a device - how am I supposed to test the release build?
I would appreciate any advice with this issue - sorry if there's something obvious I'm missing!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
参考: https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933
这意味着您需要创建另一个分发配置文件进行测试。
Ref: https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933
That means you would need to create another distribution profile for testing.