Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15245] CLI: Killing running app launched in iOS simulator presents unexpected console output including "project failed to build"

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-11-01T23:38:15.000+0000
Affected Version/sRelease 3.1.3
Fix Version/s2013 Sprint 22, 2013 Sprint 22 Core, Release 3.2.0
ComponentsCLI, iOS
Labelsmodule_cli, qe-3.1.3, qe-closed-3.2.0, qe-manualtest
ReporterEric Merriman
AssigneeChris Barber
Created2013-09-17T21:34:33.000+0000
Updated2014-08-07T18:54:34.000+0000

Description

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

Comments

  1. Chris Barber 2013-11-01

    Pull request https://github.com/appcelerator/titanium_mobile/pull/4898
  2. Sabil Rahim 2013-11-01

    close the app from the sim, by doubling tapping the home and removing it from background results in a proper end of log statement
     
       -- End simulator log ---------------------------------------------------------
       [INFO]  Application has exited from iOS Simulator
       [INFO]  Project built successfully in 1m 49s 979ms
       
  3. Olga Romero 2013-11-06

    Closing as fixed. Tested and verified
       -- End simulator log ---------------------------------------------------------
       [INFO] :   Application has exited from iOS Simulator
       [INFO] :   Project built successfully in 35s 295ms
       
    with: Titanium Studio, build: 3.2.0.201311050151 CLI 3.2.0 Alloy 1.3.0 Titanium SDK, build: 3.2.0.v20131105094044

JSON Source