iPhone 上的 adhoc 应用程序安装失败,为什么?

发布于 2024-08-10 09:29:28 字数 1582 浏览 3 评论 0原文

我正在开发一个 iPhone 应用程序。

由于应用程序具有位置感知功能,因此我正在不同的地方(我不在场的地方)对其进行测试。

为此,我向我的朋友发送了 .mobileprovision 配置文件和应用程序临时构建。

但最后应用程序安装停止在中间。

在设备日志中,它给了我以下日志:

2:42:30 unknown mobile_installationd[164] <Error>: 00808800 install_embedded_profile: Skipping the installation of the embedded profile
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 verify_executable: Could not validate signature: e8008017
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 preflight_application_install: Could not verify /var/tmp/install_staging.HreENJ/foo_extracted/Payload/RestaurantApp .app/RestaurantApp
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 install_application: Could not preflight application install
Wed Nov 11 12:42:31 unknown mobile_installation_proxy[163] <Error>: handle_install: Installation failed
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 handle_install: API failed
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 send_message: failed to send mach message of 64 bytes: 10000003
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 send_error: Could not send error response to client

那么谁能告诉我这个错误说了什么,所以安装失败了?

我发现这是一个非常常见且令人沮丧的问题。甚至没有一个人有完美的解决方案。

苹果技术说明:http://developer.apple.com/iphone/库/technotes/tn2009/tn2242.html

I am developing an iPhone application .

As the application is location aware I am testing it on a different (where I am not present).

For that I am sending my friend a .mobileprovision profile and the application adhoc build.

But At his end the application installation stops in between .

In the device log it gives me the following log :

2:42:30 unknown mobile_installationd[164] <Error>: 00808800 install_embedded_profile: Skipping the installation of the embedded profile
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 verify_executable: Could not validate signature: e8008017
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 preflight_application_install: Could not verify /var/tmp/install_staging.HreENJ/foo_extracted/Payload/RestaurantApp .app/RestaurantApp
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 install_application: Could not preflight application install
Wed Nov 11 12:42:31 unknown mobile_installation_proxy[163] <Error>: handle_install: Installation failed
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 handle_install: API failed
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 send_message: failed to send mach message of 64 bytes: 10000003
Wed Nov 11 12:42:31 unknown mobile_installationd[164] <Error>: 00808800 send_error: Could not send error response to client

So can anyone tell me what this error says so the installation fails ?

I found this is a very common and frustrating problem . And not even one has a perfect solution.

The apple technical note :http://developer.apple.com/iphone/library/technotes/tn2009/tn2242.html

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

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

发布评论

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

评论(5

生生漫 2024-08-17 09:29:28

看起来你的配置文件在某种程度上是愚蠢的。现在我通常会解决这个问题:

  1. 删除整个构建文件夹。 Clean All应该为您执行此操作,但似乎有时会留下一些信息。
  2. 在开发人员中心检查设备 ID。如果需要,请编辑它。
  3. 再次下载配置文件。
  4. 再次安装配置文件。
  5. 退出 Xcode 并重新加载。
  6. 确保您已将 Xcode 设置为使用新的临时配置文件,而不是您的开发人员配置文件,作为您将用于存档的配置的代码签名身份。
  7. 构建
  8. 立即获取可执行文件的副本

如果有某种方法可以找到出错的步骤,那就太好了,但在此之前,通常最好从头开始,除非您有非常耐心的(或本地)测试人员。

Looks as though your provisioning profile is duff in some way. Here's now I normally work around the problem:

  1. Delete your whole build folder. Clean All should do this for you but does seem to leave bits behind from time to time
  2. Check the device ID in the Developer Center. Edit it if you need to.
  3. Download the profile again.
  4. Install the profile again.
  5. Quit Xcode and reload.
  6. Make sure you've set Xcode to use the new, ad hoc profile rather than your developer profile, for the Code Signing Identity of the configuration you will be using for the archive.
  7. Build
  8. Take a copy of the executable straight away

It would be neat if there was some way of finding which step went wrong, but until that happens it's usually best just to start from scratch unless you have very patient (or local) testers.

木森分化 2024-08-17 09:29:28

您的朋友尝试安装您的应用程序的设备似乎无法验证应用程序的签名。基本上,这意味着您发送给朋友的配置文件与编译临时分发时应用的实际签名(如果有)不匹配。尝试检查以下内容:

  1. 验证您是否添加了正确的
    Entitlements.plist 文件添加到您的
    应用。
  2. 验证您是否添加了
    将 Entitlements.plist 文件添加到您的
    用于构建的临时设置
    应用程序。
  3. 验证您的证书
    用于签署应用程序
    (在您的临时设置中)实际上
    对于临时分发有效。
  4. 验证您确实构建了
    使用基础sdk相关的应用程序
    到设备,而不是模拟器
    即席分发设置。
  5. 验证配置文件
    您发送的内容是临时的
    分布及其包括
    正确连接您朋友的设备。

It appears that the device on which your friend is trying to install your app is not able to validate the application's signature. Basically this means that the provisioning profile you sent to your friend does not match the actual signature (if any) applied when compiling for ad hoc distribution. Try checking the following:

  1. verify that you added a correct
    Entitlements.plist file to your
    application.
  2. verify that you added
    the Entitlements.plist file to your
    Ad Hoc settings for building the
    app.
  3. verify that the certificate you
    are using to sign the application
    (in your Ad Hoc settings) actually
    is valid for ad hoc distribution.
  4. verify that you actually built the
    application using a base sdk related
    to the device, not the simulator and
    the Ad Hoc distribution settings.
  5. verify that the provisioning profile
    you sent is meant for ad hoc
    distribution and that it includes
    correctly the device of your friend.
若言繁花未落 2024-08-17 09:29:28

确保.app包中没有留下SVN的痕迹,有同样的问题,删除隐藏的SVN目录后,一切都安装得很好
希望这有帮助..

Make sure there are no traces of SVN left behind in the .app package, had the same issue, after removing the hidden SVN directories, everything installed fine
hope this helps..

奶茶白久 2024-08-17 09:29:28

天啊。现在已经是 2014 年中期了,XCode 5 仍然一如既往地令人恼火。

令人沮丧的是,即使您已经跳过 Apple 的新 https 流程来创建 Ad-Hoc 安装程序,您的设备也可能会下载安装包,开始安装,默默地失败 (由于不正确/无效的配置文件),但随后尝试开始下载并下载再次安装

只有进入 XCode \ Organizer 并选择您的设备后,您才能真正查看日志并发现发生了致命错误,了解原因并开始谷歌搜索一个解决方案。我无法理解为什么设备会尝试重试。

并显示模糊的“[您的应用程序]此时无法安装”错误只是误导。通常,这给人的印象是,啊,也许稍后,它会起作用。去喝杯咖啡,午饭后再喝。呃,不。

不管怎样,闲聊一下(在我投反对票之前),只是说我遇到了这个问题,以及我试图创建我们的 iPad 应用程序的临时(内部)版本的原因,但我有所选配置文件的生产(App Store)版本。

我使用正确的“内部分发”配置文件重建了应用程序,将所有内容部署到我们的 Intranet,确保 .plist 文件位于 https 服务器上(不是) http 服务器,否则安装将失败并出现另一个模糊/不相关的错误消息),然后它终于起作用了。

哦,我在这个 StackOverflow 页面 成为救星。

迈克

(去躺下。还有一杯啤酒。)

Blimey. It's mid-2014 and XCode 5 is still as infuriating as ever.

What's frustrating is that, even once you've jumped through Apple's new https hoops to create your Ad-Hoc installer, your device might download the installation package, start installing it, silently fail (due to an incorrect/invalid Provision Profile) but then attempt to start downloading & installing again !!

It's only once you go into XCode \ Organiser, and select your device, that you can actually look at the logs and find out that a fatal error occured, have some idea of the cause, and start Googling for a solution. Why the device attempts to retry is beyond me.

And showing that vague "[Your application] could not be installed at this time" error is just misleading. Often, this gives the impression that, ahh, perhaps later, it'll work. Go and have a coffee, and have again after lunch. Errr, no.

Anyway, rambling aside (before I vote myself down), just to say that I had this issue, and the cause what that I was attempting to create an Ad-Hoc (in-house) version of our iPad app, but I had the Production (App Store) version of the Provisioning Profile selected.

I rebuilt the app using the correct "In-house distribution" Provisioning Profile, deployed everything to our intranet, made sure that the .plist file was on a https server (not a http server, otherwise the install would fail with another vague/irrelevant error message), and then it finally worked.

Oh, and I found the tips on this StackOverflow page to be a lifesaver.

Mike

(Off for a lie down. And a beer.)

兮颜 2024-08-17 09:29:28

对于错误消息“无法在设备上安装应用程序:错误:已添加、修改或删除签名资源。”

这可能是一种可能的解决方案

For error message "Could not install application on device: Error: A signed resource has been added, modified or deleted."

this could be one probable solution

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