ipad / iphone通过monotouch部署到设备

时间:2012-04-04 10:27:06

标签: iphone xcode ipad mono xamarin.ios

我已经构建了2个应用程序:一个用于iPhone,一个用于iPad。它们都构建得很好并且在模拟器中运行。在更新到Xcode 4.3.2之前,它们在设备上运行良好 当我使用MonoTouch构建设备时,收到此消息:

Please ensure your device is connected...  
Connected to: Steve’s iPad  
Initializing file service...  
Uploading application  
Finalizing file service...   
Installing application  
Installation failed: AMDeviceInstallApplication returned: 0xe8008017  
The application was terminated by a signal: SIGHUP  

当我通过Xcode / Organizer查看控制台时,我看到以下消息:

Apr  4 10:22:22 unknown installd[819] <Error>: libMobileGestalt loadBasebandMobileEquipmentInfo: CommCenter error: 1:45  
Apr  4 10:22:22 unknown installd[819] <Error>: libMobileGestalt copyInternationalMobileEquipmentIdentity: Could not get mobile equipment info dictionary  
Apr  4 10:22:22 unknown com.apple.mobile.lockdown[17] <Notice>: Could not receive size of message  
Apr  4 10:22:22 unknown lockdownd[17] <Error>: 010f4000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection  

Apr  4 10:22:23 unknown installd[819] <Error>: 2ffa4000 verify_signer_identity: Could not copy validate signature: -402620393  
Apr  4 10:22:23 unknown installd[819] <Error>: 2ffa4000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.5kF0E7/EastmaniPad.app  
Apr  4 10:22:23 unknown installd[819] <Error>: 2ffa4000 install_application: Could not preflight application install  
Apr  4 10:22:23 unknown mobile_installation_proxy[818] <Error>: handle_install: Installation failed  
Apr  4 10:22:23 unknown com.apple.mobile.lockdown[17] <Notice>: Could not receive size of messageCould not receive size of message  
Apr  4 10:22:23 unknown lockdownd[17] <Error>: 2fff5000 handle_connection: Could not receive USB message #7 from mtouch. Killing connection  
Apr  4 10:22:23 unknown lockdownd[17] <Error>: 2fef1000 handle_connection: Could not receive USB message #14 from mtouch. Killing connection  
Apr  4 10:22:23 unknown installd[819] <Error>: 2ffa4000 handle_install: API failed  
Apr  4 10:22:23 unknown installd[819] <Error>: 2ffa4000 send_message: failed to send mach message of 71 bytes: 10000003  
Apr  4 10:22:23 unknown installd[819] <Error>: 2ffa4000 send_error: Could not send error response to client  

是否还有其他人遇到此问题,或者是否有人能够更好地解读上述堆栈跟踪?

2 个答案:

答案 0 :(得分:3)

关键部分是:

Could not copy validate signature: -402620393

如果你谷歌这个错误,你会发现一些想法:

  • 先从设备上手动删除应用,然后再尝试上传。
  • 确保在Xcode中正确配置了配置文件。这通常意味着将它们全部删除并再次下载。

我也可以提出一些我自己的想法:

  • 检查模板中的新项目是否发生了同样的事情。如果可行,那么您的应用中会出现导致签名验证失败的内容。
  • 检查新Xcode项目是否发生了同样的事情(如果它有效,请再次尝试使用您的项目;在某些情况下,Xcode会知道自动配置)
  • 重启设备和Mac。
  • 如果您有其他设备,请尝试。

答案 1 :(得分:0)

我遇到了同样的问题,但结果是项目选项“可执行文件”设置被设置为“可执行GUI> ”而不是“可执行文件