[英]Black screen in iOS simulator
I'm trying to launch a titanium app in the iOS simulator, but I get a black screen. 我正试图在iOS模拟器中启动一个钛应用程序,但我得到一个黑屏。 Everything worked fine until now.
一切都运行良好,直到现在。 I don't know why it doesn't work anymore.
我不知道为什么它不再起作用了。
This is the error I get: 这是我得到的错误:
[TRACE] ** BUILD SUCCEEDED **
[INFO] Finished building the application in 14s 136ms
[INFO] Running application in iOS Simulator
[DEBUG] Terminating all iOS simulators
[INFO] Launching application in iOS Simulator
[DEBUG] Simulator command: "/Users/carl/Library/Application Support/Titanium/mobilesdk/osx/3.3.0/iphone/ios-sim" launch /Users/carl/Dev/test/build/iphone/build/Debug-iphonesimulator/test.app" --xcode-dir "/Applications/Xcode.app/Contents/Developer" --sdk 7.1 --family iphone --retina --tall
[INFO] Focusing the iOS Simulator
[ERROR] Project failed to build after 1m 44s 479ms
I tried to reset content and settings in the simulator, but it doesn't work. 我试图在模拟器中重置内容和设置,但它不起作用。 Also tried to reboot, and reinstall Xcode, with no luck.
还尝试重新启动,并重新安装Xcode,没有运气。
The project launches correctly on a device. 项目在设备上正确启动。
I use Titanium SDK 3.3.0, Xcode 5.1.1, iOS SDK 7.1 on OSX 10.9.4 (Mavericks) 我在OSX 10.9.4(Mavericks)上使用Titanium SDK 3.3.0,Xcode 5.1.1,iOS SDK 7.1
Tmux causes the simulator to timeout. Tmux导致模拟器超时。 See this discussion .
见这个讨论 。
ios-sim isn't a supported mechanism for interacting with the iOS Simualtor. ios-sim不是与iOS Simualtor交互的受支持机制。 I suggest you upgrade to Xcode 6 which includes CoreSimulator and the simctl command line tool to control it.
我建议你升级到Xcode 6,它包括CoreSimulator和simctl命令行工具来控制它。 That should pretty much cover all of the main cases that you were using ios-sim for.
这应该几乎涵盖了您使用ios-sim的所有主要案例。
If you still have issues, please take a spindump and also look at the ~/Library/Logs/CoreSimulator/[Device UDID]/system.log file to see what the current activity is on your device. 如果仍有问题,请使用spindump并查看〜/ Library / Logs / CoreSimulator / [Device UDID] /system.log文件以查看设备上当前活动的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.