在设备上安装 iPhone 应用程序时出错

发布于 2024-07-08 05:31:29 字数 497 浏览 8 评论 0原文

我今天设置了所有证书和密钥,并尝试在 iPhone 上运行我的项目。 我遇到这个奇怪的错误:

您的移动设备在安装阶段遇到意外错误 (0xE800003A):正在验证应用程序

在 Apple 开发者论坛中查阅,我尝试设置新的证书和配置文件以及编辑 Info.plist ,但无论我做什么,我似乎都无法在我的设备上运行该应用程序。

我目前唯一能想到的是,我在 Xcode 中的项目名称与我的开发配置文件略有不同(它使用问号),但我根据 Apple 的约定命名它:com.mycompany.myapp< /code>,所以我不确定这是否是问题所在。

有任何想法吗?

编辑:我已经硬重启了手机,重新启动了 Xcode,清理了我的目标,设置了新的通配符应用程序 ID 和相应的配置文件,但仍然没有任何结果。 还有其他想法吗?

I set up all my certificates and keys today and am trying to run my project on my iPhone.
I'm encountering this strange error:

Your mobile device has encountered an unexpected error (0xE800003A) during the install phase: Verifying application

Poking around the Apple Developer forums, I've attempted to set new certificates and provisioning profiles as well as editing Info.plist, but no matter what I do I can't seem to run the app on my device.

The only think I can currently think of is that my project name in Xcode differs slightly from my development provisioning profile (it uses a question mark), but I've named it according to Apple's conventions: com.mycompany.myapp, so I'm unsure if that's the problem.

Any ideas?

Edit: I've hard restarted the phone, rebooted Xcode, cleaed my targets, set up a new wildcard App ID and respective provisioning profile and still nothing. Any other ideas?

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

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

发布评论

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

评论(11

毅然前行 2024-07-15 05:31:29

事实证明,我的钥匙串中有 2 个证书,它们同时互相覆盖! 我希望这对未来的人们有所帮助。

It turned out that I had 2 certs in keychain that were simultaneously overwriting each other! I hope this helps people in the future.

π浅易 2024-07-15 05:31:29

您应该创建一个通配符应用程序 ID; com.mycompany.*。 这可能有帮助。

You should create a wildcard app ID; com.mycompany.*. That may help.

你爱我像她 2024-07-15 05:31:29

我曾多次遇到过这种情况。 我所做的是清理所有目标,关闭 xcode,然后硬重启我的手机。

I've encountered this on many occasions. What i do is clean all targets, shut down xcode, and hard reboot my phone.

世界和平 2024-07-15 05:31:29

这是一个与获取证书错误的更常见问题不同的错误...

恢复手机(使用 XCode Organizer 重新加载最新操作系统),为了安全起见,第一次与 iTunes 同步时不要从备份中恢复(即使您不使用备份,同步时它仍然会保留您的号码)。 我不得不这样做几次,最后一次是在部署过程中,当我从电缆上拔下电话时(必须接听电话)。

首先尝试重新启动(手机),并在 XCode 关闭的情况下将其连接起来。 但如果这不能解决问题,恢复就是方法。

This is a different error than the more common problem of getting the cert wrong...

Restore the phone (using the XCode Organizer to reload the latest OS), to be safe do not restore from backup when you sync with iTunes the first time (it'll still keep your number when you sync even if you don't use the backup). I've had to do this a very few times, the last one was when it was in the middle of deployment when I unhooked the phone from the cable (had to answer a call).

Try the reboot (of the phone) first, hooking it up with XCode off. But if that does not solve things, restore is the way.

擦肩而过的背影 2024-07-15 05:31:29

XCode Organizer 中的控制台选项卡有时会提供有关安装阶段发生的情况的有用提示。 在一种情况下,我的问题是我的应用程序已经存在于手机上。 我删除了我的应用程序并且安装成功。

无论如何,看起来很多错误消息都捆绑到了这一神秘消息中,为了真正诊断正在发生的情况,我发现“控制台”选项卡非常有用......

The console tab in the XCode Organizer sometimes gives helpful hints as to what happens during the install phase. In one case my problem was my app already existing on the phone. I deleted my app and the install succeeded.

Regardless, it looks like a lot of error messages are bundled into this one cryptic message and to really diagnose what is going on, I found the Console tab very useful...

っ左 2024-07-15 05:31:29

另一件可以尝试的事情是重新安装 iPhone SDK。 当我第一次获得开发人员密钥时,我遇到了这样的错误,这是唯一的解决方法。

One other thing to try is reinstalling the iPhone SDK. I ran into an error like this when I first got my developer key and this was the only way around.

岛徒 2024-07-15 05:31:29

只是想对大家说,当你去编辑Targets-> 请务必将左上角的“配置”设置为“所有配置”或您正在构建的正确配置(调试或发布)。 您可能认为您的设置正确,但实际上是错误的配置。

Just want to say to everyone, when you go to edit Targets-> be sure to set "configuration" in the top left corner to "All Configurations" or the correct config you are building for (Debug or Release). You might think you have things set correctly but it will be for the wrong configuration.

恍梦境° 2024-07-15 05:31:29

我在之前已成功从 XCode 安装应用程序的正确配置的设备上看到过该错误,并且我很幸运地重新启动设备并重试。 也许这会有所帮助。

I've seen that error on a correctly provisioned device that has had success installing apps from XCode before, and I've had luck restarting the device and trying again. Maybe that will help.

悲歌长辞 2024-07-15 05:31:29

尝试在发布模式而不是调试模式下运行。 我有一个有这个问题的工作项目。 不知道问题是什么,但在发布模式下运行它可以工作,但调试模式会产生错误代码。

Try running in Release mode instead of Debug. I have a working project with this problem. No idea what the issue was, but running it in Release mode works, but Debug mode produces the error code.

鲜血染红嫁衣 2024-07-15 05:31:29

我有一张针对同样问题的 Apple 开发支持的支持票,并且(FWIW)如果他们能让我的工具链正常工作,我会发布他们的建议。

I have a support ticket open with Apple dev support for the same problem, and (FWIW) I'll post their recommendations if and when they can get my toolchain working.

莳間冲淡了誓言ζ 2024-07-15 05:31:29

这个:(来源:http://ephemera.lifewithalacrity.com/iphone_development/

试试 这应该只适用于发行版本,它帮助我能够在我的 iPhone 上再次安装我的调试版本,在它昨天神秘地崩溃后。

“只需三次检查项目属性中的所有代码签名是否都是明确的或默认的”

注意,这是项目属性而不是目标属性。 我将代码签名配置文件设置回默认值并删除了代码签名身份字符串。

Try this: (source: http://ephemera.lifewithalacrity.com/iphone_development/)

Even though this is supposedly only for Distribution builds, it helped me to be able to install my Debug version on my iPhone again, after it mysteriously broke yesterday.

"just triple check that all the code signing in your project properties are clear or default"

Note, this is the PROJECT properties as opposed to the TARGET properties. I set my Code Signing Provisioning Profile back to the default and removed the Code Signing Identity string.

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