iOS模拟器无法安装应用程序 [英] iOS Simulator failed to install application

查看:193
本文介绍了iOS模拟器无法安装应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Xcode项目开始显示"iOS Simulator无法安装该应用程序"

My Xcode project started to give "iOS Simulator failed to install the application"

我正在使用iOS Simulator 7.1.模拟器运行任何其他项目. 我已经阅读了堆栈溢出中的其他条目,并且 我试图从终端删除〜/Library/Application Support/iPhone Simulator, 从"iOS模拟器/重置内容和设置"菜单中重置, 关闭并重新启动Maverick 但是结果是一样的.

I'm using iOS Simulator 7.1. The simulator runs any other project. I've read other entries in stack overflow and I've tried to delete ~/Library/Application Support/iPhone Simulator from terminal, reset from "iOS Simulator/Reset Content and Settings" menu, shutdown and restart Maverick but result was the same.

请帮助!

更新: 当我尝试将应用程序上传到真实设备时,出现以下错误:无法检查应用程序包."

Update: When I try to upload my application to a real device I got this error: "Could not inspect the application package."

我认为此错误与上述错误有关.

I think this error is related to above error.

当我检查system.log条目时,发现以下几行:

When I check system.log entries I found below lines:

...

05/05/14 00:04:48,507 Xcode[1534]: AMDeviceSecureTransferPath (thread 0x10bd96000): disableDelta: FALSE
05/05/14 00:04:48,606 Xcode[1534]: AMDeviceSecureTransferPath (thread 0x10bd96000): Using delta for package at path    file:///Users/serkan/Library/Developer/Xcode/DerivedData/myapp-efvftyvllnqdibctwpfggqgjpfzk/Build/Products/Debug-iphoneos/myapp.app/ ID is myapp.myapp
05/05/14 00:04:48,640 Xcode[1534]: AMDeviceStartHouseArrestService (thread 0x10bd96000):  There was an error from the device: ApplicationLookupFailed
05/05/14 00:04:48,650 Xcode[1534]: AMDeviceSecureTransferPath (thread 0x10bd96000): AMDeviceSecureTransferPath:1589 starting delta_transfer_directory, ref_afc: 0x0
05/05/14 00:04:50,642 Xcode[1534]: AMDeviceSecureTransferPath (thread 0x10bd96000): AMDeviceSecureTransferPath:1592 finished delta_transfer_directory
05/05/14 00:04:50,716 Xcode[1534]: call_and_response (thread 0x10bd96000): GOT AN ERROR 0xe8000051
05/05/14 00:04:50,716 Xcode[1534]: perform_command (thread 0x10bd96000): There was an error communicating with the service agent: 0xe8000051
05/05/14 00:04:50,717 Xcode[1534]: AMDeviceSecureInstallApplication (thread 0x10bd96000): Old style install failed for (PublicStaging/myapp.app)
05/05/14 00:04:50,717 Xcode[1534]: AMDeviceSecureInstallApplication (thread 0x10bd96000): Could not install package on device: kAMDPackageInspectionFailedError

推荐答案

您是否有一个名为Resource或Resources的文件夹?将其重命名为其他名称,然后重试. (记住要清理项目.)

Do you have a folder named Resource or Resources? Rename that to a different name and try again. (Remember to clean the project.)

如果不能解决问题,请查看项目设置,在构建阶段"下,在复制捆绑资源"下.也许陈旧的条目就坐在那儿,需要手动将其删除.

If this does not fix it, look at the project settings, there under "Build phases" and there under "Copy Bundle Resources". Maybe a stale entry sits there and needs to be removed manually.

还要清理项目.单击菜单项时,按住选项键,使其显示"Clean Build Folder ...".如有必要,请删除派生数据:打开管理器,选择您的项目:条目派生数据"显示了Xcode生成的文件的路径.右边的还有一个Delete按钮-单击该按钮可删除所有派生数据. (Xcode将必须重建索引文件等,没什么关键的)

Also clean the project. Hold the option key when clicking on the menu entry so it says "Clean Build Folder...". If necessary, remove the derived data: Open Organizer, select your project: There is an entry "Derived Data" which shows the path to the files generated by Xcode. Right to that is also a Delete button - click that to delete all the derived data. (Xcode will have to rebuild index files etc., nothing critical)

(我记得,当我有一个Resource(s)文件夹并重命名该文件夹时,我看到了这样的错误.据我了解,Resource用于Mac OS X应用程序.不适用于iOS,但至少在我的情况下造成了麻烦.)

(I remember, that I saw such errors when I had a Resource(s) folder and when I renamed it, it worked again. As far as I understood, Resource is used for Mac OS X apps. I assumed it would not be used for iOS, but at least it caused trouble in my case.)

这篇关于iOS模拟器无法安装应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆