[TIMOB-12004] iOS Simulator: iOS 6 with Simulator 5.1 app crashes on launch on some machines
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-12-10T22:05:48.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-ios100112 |
Reporter | Dustin Hyde |
Assignee | Chris Barber |
Created | 2012-12-08T00:59:38.000+0000 |
Updated | 2016-03-17T00:20:50.000+0000 |
Description
On some machines, when a Titanium Project is run on iPhone Simulator 5.1 using iOS SDK 6.0, the app will crash on launch, then the simulator will exit.
Here is the console log:
[INFO] : Build type: development
[INFO] : Building for target: simulator
[INFO] : Building using iOS SDK: 6.0
[INFO] : Building for iOS iPhone Simulator: 5.1
[INFO] : Building for device family: iphone
[INFO] : Building for iOS 6.0; using 4.3 as minimum iOS version
[INFO] : Debugging disabled
[INFO] : Building Info.plist
[INFO] : Creating symlinks for simulator build
[INFO] : No module resources to copy
[INFO] : Copying CommonJS modules
[INFO] : Finished building the application in 5s 773ms
[INFO] : Running application in iOS Simulator
[INFO] : Launching application in iOS Simulator
[INFO] : Project built successfully in 35s 843ms
[ERROR] : An error occurred running the iOS Simulator
[ERROR] : [DEBUG] Sessiocould not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 "Simulator session timed out." UserInfo=0x100118530 {NSLocalizedDescription=Simulator session timed out.}
Here is the studio run command:
!ENTRY com.aptana.core 1 0 2012-12-07 16:48:55.800
!MESSAGE (Build 3.0.0.201212071410) [INFO] com.aptana.core/debug/shell Running process:
Process: "/usr/local/bin/titanium" "--no-banner" "--no-colors" "--no-prompt" "build" "--platform" "iphone" "--sdk" "3.0.0.v20121207103200" "--log-level" "trace" "--target" "simulator" "--ios-version" "6.0" "--device-family" "iphone" "--sim-version" "5.1"
Working directory: /Users/dhyde/Desktop/jenkins-rc/workspace/MyProject
Environment: {ANALYTICS_SOURCE=studio, APTANA_VERSION=3.0.0.1346448223, Apple_PubSub_Socket_Render=/tmp/launch-AzNOpz/Render, Apple_Ubiquity_Message=/tmp/launch-5aw77x/Apple_Ubiquity_Message, COMMAND_MODE=unix2003, COM_GOOGLE_CHROME_FRAMEWORK_SERVICE_PROCESS/USERS/DHYDE/LIBRARY/APPLICATION_SUPPORT/GOOGLE/CHROME_SOCKET=/tmp/launch-Q9cPME/ServiceProcessSocket, HOME=/Users/dhyde, JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home, LANG=en_US.UTF-8, LOGNAME=dhyde, NUM_CPUS=4, PATH=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin, PWD=/Users/dhyde/Desktop/jenkins-rc/workspace/MyProject, SHELL=/bin/bash, SHLVL=1, SSH_AUTH_SOCK=/tmp/launch-CQr5wF/Listeners, TI_DEBUG=0, TMPDIR=/var/folders/6f/wxjmlj0n7kl5w8kmq5hrrbch0000gp/T/, USER=dhyde, __CF_USER_TEXT_ENCODING=0x1F6:0:0, com.apple.java.jvmTask=JNI}
Steps to Reproduce:
1. Run Titanium Project using this command:
"/usr/local/bin/titanium" "--no-banner" "--no-colors" "--no-prompt" "build" "--platform" "iphone" "--sdk" "3.0.0.v20121207103200" "--log-level" "trace" "--target" "simulator" "--ios-version" "6.0" "--device-family" "iphone" "--sim-version" "5.1"
Actual Result:
Simulator Crash.
Expected Result:
Run.
Work-around is to select iOS Simulator Menu > Hardware > Version > 5.1, then rerun the command. The hardware version is not being selected on launch for some reason.
I am no longer seeing this issue after a full Xcode/SDK/Studio/Node.JS reinstall. It is possible the Xcode 4.4 installation interfered with the existing 4.5 simulators, for lack of a better explanation. Titanium Studio: 3.0.0.201212071410 Titanium SDK: 2.1.4.GA, 3.0.0.v20121207120202 Titanium CLI: 3.0.20 iOS Simulators: iPhone/iPad 6.0/5.1. Xcode: 4.5.2 OS: Mountain Lion 10.8.2