Description:
When an app is launched in the iOS simulator and killed via the simulator, the following output appears in the console:
[ERROR] An error occurred running the iOS Simulator
[ERROR] [DEBUG] using retina iphone retina tall ios 7
[ERROR]
[ERROR] Project failed to build after 55s 673ms
A slightly longer section of the output shows "** BUILD SUCCEEDED **" prior to the failure, this could cause confusion:
[TRACE] ** BUILD SUCCEEDED **
[INFO] Finished building the application in 30s 54ms
[INFO] Running application in iOS Simulator
[DEBUG] Terminating all iOS simulators
[INFO] Launching application in iOS Simulator
[TRACE] Simulator environment: DYLD_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks:/Applications/Xcode.app/Contents/OtherFrameworks
[DEBUG] Simulator command: "/Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.v20130916153052/iphone/ios-sim" launch "/Users/emerriman/Documents/workspace/augustWorkspace/tc2966/build/iphone/build/Debug-iphonesimulator/tc2966.app" --sdk 7.0 --family iphone --retina --tall
[INFO] Focusing the iOS Simulator
[DEBUG] Found iPhone Simulator log file: /Users/emerriman/Library/Application Support/iPhone Simulator/7.0/Applications/AB2E9390-B708-4629-9B7F-E74C22AD93C9/Documents/e3ae0a76-f4d6-4e24-8b6f-76e230aea7e5.log
-- Start simulator log -------------------------------------------------------
[INFO] Application started
[DEBUG] Reading stylesheet from: /Users/emerriman/Library/Application Support/iPhone Simulator/7.0/Applications/AB2E9390-B708-4629-9B7F-E74C22AD93C9/tc2966.app/stylesheet.plist
[INFO] tc2966/1.0 (3.1.3.v20130916153052.c35b513)
[DEBUG] Analytics is enabled = YES
[DEBUG] Loading: /Users/emerriman/Library/Application Support/iPhone Simulator/7.0/Applications/AB2E9390-B708-4629-9B7F-E74C22AD93C9/tc2966.app/app.js, Resource: app_js
[DEBUG] Application booted in 222.056031 ms
-- End simulator log ---------------------------------------------------------
[ERROR] An error occurred running the iOS Simulator
[ERROR] [DEBUG] using retina iphone retina tall ios 7
[ERROR]
[ERROR] Project failed to build after 55s 673ms
This occurs from Studio or the CLI.
Steps to reproduce:
1) Create a project
2) Launch in CLI or studio on iOS simulator
3) When app running in simulator, simulate home button press (via CMD-SHIFT-H)
4) Simulate Double press on home button (via double CMD-SHIFT-H)
5) For iOS 7, find your running app and swipe upwards to kill
6) Check console
Result:
Error as listed above
Expected Result:
No errors presented
Pull request https://github.com/appcelerator/titanium_mobile/pull/4898
close the app from the sim, by doubling tapping the home and removing it from background results in a proper end of log statement
Closing as fixed. Tested and verified
with: Titanium Studio, build: 3.2.0.201311050151 CLI 3.2.0 Alloy 1.3.0 Titanium SDK, build: 3.2.0.v20131105094044