简体   繁体   English

Appcelerator无法在iOS Simulator中运行应用程序

[英]Appcelerator unable to run app in iOS Simulator

Trying to Run an Alloy app in Studio. 尝试在Studio中运行Alloy应用。

iOS Simulator (iPad 9.2) is launched but the app wont be installed and run. iOS Simulator(iPad 9.2)已启动,但不会安装和运行该应用程序。 Console shows following logs. 控制台显示以下日志。

[ERROR] :  Project failed to build after 4m 4s 404ms
[ERROR] :  An error occurred running the iOS Simulator (ios-sim exit code 1)
2016-01-15T12:24:56.489Z | TRACE  | titanium exited with exit code 1
2016-01-15T12:24:56.490Z | ERROR  | Error: ti run exited with error code 1
    at ChildProcess.<anonymous> (/Users/neo/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/plugins/run.js:92:66)
    at ChildProcess.emit (events.js:110:17)
    at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
2016-01-15T12:24:56.491Z | TRACE  | Sending exit signal to titanium process:  2515 

The same code-base seems to be running fine on other team members machines. 相同的代码库在其他团队成员计算机上似乎运行良好。

Checked following based on diff posts but nothing helped: 根据差异帖子检查了以下内容,但无济于事:

  1. Checked on platform that I am member of the Org -> App 在平台上检查我是Org的成员-> App
  2. Since the project uses 4.0.0.GA, I uninstalled the latest 5.1.2.GA SDK and tried running. 由于该项目使用4.0.0.GA,因此我卸载了最新的5.1.2.GA SDK并尝试运行。

    • XCode v7.2 XCode v7.2
    • appc v5.1.0 appc v5.1.0
    • Studio v4.4.0... Studio v4.4.0 ...

How to fix/debug this issue? 如何解决/调试此问题?

In this case it helped me to delete the simulator and re-init it. 在这种情况下,它可以帮助我删除模拟器并重新初始化。

The device can be deleted in: Hardware -> Device -> Manage devices in simulator menu 可以在以下位置删除设备:硬件->设备->在模拟器菜单中管理设备

Unfortunately iOS Simulator and the CLI it has is like a black box. 不幸的是,iOS Simulator和它的CLI就像一个黑盒子。 You mention that you use a relatively old Titanium SDK though, from before the Xcode and iOS versions you target. 您提到您从目标Xcode和iOS版本开始使用了相对较旧的Titanium SDK。 That might be related. 这可能是相关的。 Could you try with a recent (5.1.2) SDK and also make sure it is selected ( appc ti sdk select 5.1.2.GA )? 您能否尝试使用最新的(5.1.2)SDK,并确保已选择它( appc ti sdk select 5.1.2.GA )?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM