Xcode错误:无法启动模拟应用程序 [英] Xcode error: Failed to launch simulated application

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

问题描述

问题



此处
这里,我得到这个错误后全新安装的Leopard(hackintosh),这个问题真的驱使我疯狂,没有地方找到一个线索,我googled和访问每一篇文章相关



第一次安装iPhone SDK 2.2.1后,开始一个新项目(任何类型,基于Navigate,OpenGL ES应用程序),然后构建和走,我有以下问题:
有时它是:


无法启动模拟应用程序:未知错误。


有时是:


无法启动模拟应用程序:iPhone模拟器找不到com.yourcompany的进程ID [应用程序名称]


在模拟器中的应用程序立即崩溃,因此Xcode可以找到进程ID。



解决方案



这个链接说,这甚至不能解决。


  1. 取消选中Info.plist

  2. 退出XCode
  3. li>
  4. 删除目录/Lib/Caches/com.apple.DeveloperTools。###

  5. 打开Xcode项目

  6. 清除所有目标

  7. 重建

并重置iPhone模拟器。这也没有解决问题...



我已经尝试卸载SDK并重新安装它,仍然有同样的错误...



这是与硬件有关的问题吗?或操作系统版本?我使用hackintosh(iDenebv1.4 10.5.6),所有其他软件工程好,包括iTunes&& vmware融合。



非常感谢任何进一步的提示或线索。

解决方案

p>找到一些wierd登录/var/log/system.log。

  5月8日16:17:50 th084134 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk /System/Library/CoreServices/SpringBoard.app/SpringBoard[1170]:MobileInstallationLookup:生成安装映射
May 8 16:17:50 th084134 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1 .sdk / System / Library / CoreServices / SpringBoard.app / SpringBoard [1170]:load_application_info:无法从/ Users / test / Library / Application Support / iPhone Simulator / User / Applications / 5D55807A-7489-4DC5-B4D7 -2ECD5E230F29 / new1.app / new1
May 8 16:17:50 th084134 [0x0-0x2e02e] .com.apple.iphonesimulator [1168]:错误编译查询SELECT value FROM _SqliteDatabaseProperties WHERE key =?;:没有这样的表:_SqliteDatabaseProperties
May 8 16:17:51 th084134 SpringBoard [1170]:无法获取com.yourcompany.new1的任务名端口。它无法执行或它立即终止:(os / kern)失败
5月8日16:17:51 th084134 SpringBoard [1170]:无法激活< SBApplication:0x123e6d0> com.yourcompany.new1 activate:animated deactivate:
May 8 16:17:51 th084134 SpringBoard [1170]:Application< SBApplication:0x123e6d0> com.yourcompany.new1 activate:animated deactivate:信号异常退出256:未知信号:256
5月8日16:17:51 th084134 SpringBoard [1170]:无法获取com.yourcompany.new1的任务名端口。它无法执行或它立即终止:(os / kern)失败
5月8日16:17:51 th084134 com.apple.launchd [164](UIKitApplication:com.yourcompany.new1 [0xa455] [1171] ):Bug:launchd_core_logic.c:2812(23714):103:sandbox_init(j-> seatbelt_profile,j-> seatbelt_flags,& seatbelt_err_buf)!= -1
May 8 16:17:51 th084134 com .apple.launchd [164](UIKitApplication:com.yourcompany.new1 [0xa455] [1171]):沙箱无法启动:无法应用内置配置文件`/ Users / test / Library / Application Support / iPhone Simulator / User / Applications / 5D55807A-7489-4DC5-B4D7-2ECD5E230F29.sb':找不到策略
May 8 16:17:51 th084134 com.apple.launchd [164](UIKitApplication:com.yourcompany.new1 [0xa455] [1171] ):退出时带有退出代码:1
May 8 16:17:51 th084134 [0x0-0x2e02e] .com.apple.iphonesimulator [1168]:2009-05-08 16:17:51.026 SpringBoard [1170:10b ]无法获取com.yourcompany.new1的任务名称端口。它无法执行或它立即终止:(os / kern)失败

这里是关于如何通过命令行在模拟器中运行应用程序的讨论,希望它有助于了解如何



好的,我解决了这个问题。 安装另一个hackintosh发行版(IPC 10.5.6),效果很好!


Problem

Unlike people have asked at here and here, I got this error after a brand new installation of Leopard (hackintosh), this problem really driving me crazy and nowhere else to find an clue, I googled and visited every article related with this, still can't get it solved.

After the first time install iPhone SDK 2.2.1, start a new project(any type, Navigate based, OpenGL ES application), then build and go, I got the following problem: sometime it's:

Failed to launch simulated application: Unknown error.

and sometimes it's:

Failed to launch simulated application: iPhone Simulator failed to find the process ID of com.yourcompany.[application name]

It seems that apps in the simulator crashed immediately, so Xcode can find the process ID.

Solution

This link says that this even can't be solved. Some others make a detailed step by step:

  1. Uncheck Info.plist
  2. Quit XCode
  3. Delete directory /Lib/Caches/com.apple.DeveloperTools.###
  4. Open Xcode project
  5. Clean All Targets
  6. Rebuild

and I reset the iPhone Simulator. This also didn't solve the problem…

I've even tried uninstall the SDK and reinstall it, still got the same error…

Is this a problem related with hardwares? or the operating system version? I'm using a hackintosh (iDenebv1.4 10.5.6), all other software works good including iTunes && vmware fusion.

Great thanks for any further tips or clues!

解决方案

found some wierd log in /var/log/system.log.

May  8 16:17:50 th084134 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard[1170]: MobileInstallationLookup: Generating the install map
May  8 16:17:50 th084134 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard[1170]: load_application_info: Could not load signer identity from /Users/test/Library/Application Support/iPhone Simulator/User/Applications/5D55807A-7489-4DC5-B4D7-2ECD5E230F29/new1.app/new1
May  8 16:17:50 th084134 [0x0-0x2e02e].com.apple.iphonesimulator[1168]: error compiling query "SELECT value FROM _SqliteDatabaseProperties WHERE key = ?;": no such table: _SqliteDatabaseProperties
May  8 16:17:51 th084134 SpringBoard[1170]: Unable to obtain task name port for com.yourcompany.new1. Either it failed to exec or it terminated immediately: (os/kern) failure
May  8 16:17:51 th084134 SpringBoard[1170]: Couldn't activate <SBApplication: 0x123e6d0> com.yourcompany.new1 activate: animated  deactivate: 
May  8 16:17:51 th084134 SpringBoard[1170]: Application <SBApplication: 0x123e6d0> com.yourcompany.new1 activate: animated  deactivate:  exited abnormally with signal 256: Unknown signal: 256
May  8 16:17:51 th084134 SpringBoard[1170]: Unable to obtain task name port for com.yourcompany.new1. Either it failed to exec or it terminated immediately: (os/kern) failure
May  8 16:17:51 th084134 com.apple.launchd[164] (UIKitApplication:com.yourcompany.new1[0xa455][1171]): Bug: launchd_core_logic.c:2812 (23714):103: sandbox_init(j->seatbelt_profile, j->seatbelt_flags, &seatbelt_err_buf) != -1
May  8 16:17:51 th084134 com.apple.launchd[164] (UIKitApplication:com.yourcompany.new1[0xa455][1171]): Sandbox failed to init: Cannot apply builtin profile `/Users/test/Library/Application Support/iPhone Simulator/User/Applications/5D55807A-7489-4DC5-B4D7-2ECD5E230F29.sb': Policy not found
May  8 16:17:51 th084134 com.apple.launchd[164] (UIKitApplication:com.yourcompany.new1[0xa455][1171]): Exited with exit code: 1
May  8 16:17:51 th084134 [0x0-0x2e02e].com.apple.iphonesimulator[1168]: 2009-05-08 16:17:51.026 SpringBoard[1170:10b] Unable to obtain task name port for com.yourcompany.new1. Either it failed to exec or it terminated immediately: (os/kern) failure

Here is a discussion about how to run app in simulator via command line, hope it helps to understand how does xcode and simulator works.

But I didn't work it out.

Well, I "solved" it by install another distribution of hackintosh(IPC 10.5.6), works perfect!

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

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