我开发了自己应用的测试版,我希望将它放在几个朋友的iPhone上进行测试。我已经完成了Developer Portal中的Ad Hoc部署步骤,我也按照这里的说明进行操作:http://www.talentgrouplabs.com/blog/archive/2008/11/10/iphone-sdk-mobile-provisioning-0xe800003a-0xe8000001.aspx。当我尝试使用Ad Hoc设置选择编译应用程序时,我得到一个“putpkt:写入失败:管道损坏”。错误记录到控制台。该应用程序似乎已安装,并开始运行,因为我看到第一个屏幕一秒钟。然而,它崩溃并退出。我不知所措。有什么想法吗?以下是输出到控制台的内容:
[Session started at 2009-01-28 21:59:35 -0500.] Loading program into debugger… Warning - No location found for "AreasTableViewController.m:84" GNU gdb 6.3.50-20050815 (Apple version gdb-963) (Sun Nov 2 03:13:07 UTC 2008) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000 Program loaded. target remote-mobile /tmp/.XcodeGDBRemote-6714-88 Switching to remote protocol mem 0x1000 0x3fffffff cache mem 0x40000000 0xffffffff none mem 0x00000000 0x0fff none sharedlibrary apply-load-rules all run Running… putpkt: write failed: Broken pipe. putpkt: write failed: Broken pipe.
答案 0 :(得分:18)
这实际上是Xcode与手机通话的内部错误。这并不意味着你做错了什么,这是开发系统中的一个错误。退出并重新启动Xcode后,以及可能在重启Mac后,它会消失。我有一段时间没有看到错误 - 可能有必要从手机中移除应用程序等其他伏都教。
答案 1 :(得分:1)
我在网上找到了它,它对我有用。只是重新启动xcode是不够的。
答案 2 :(得分:1)
只需关闭您的设备并再次打开它,现在运行您的应用程序,它将正常工作。
答案 3 :(得分:0)
如果有其他人遇到这种情况,Xcode 4.2(测试版)和iOS 5(测试版)似乎存在一个错误,它不允许我使用临时配置文件运行任何应用程序。
当我将其切换回开发人员配置文件时,一切正常。