Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18060] CLI: When building to simulator the log output contains two [DEBUG] tags

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2014-11-19T22:54:26.000+0000
Affected Version/sRelease 3.5.0, Release 4.0.0
Fix Version/sn/a
ComponentsCLI
Labelsqe-3.5.0
ReporterEwan Harris
AssigneeChris Barber
Created2014-11-19T22:36:33.000+0000
Updated2017-03-23T20:49:49.000+0000

Description

Description

When building to an iOS Simulator after the simulator has finished launching the following is logged to the terminal, on lines 4 to 11 the logging contains two \[DEBUG] tags and both \[ioslib] and \[ios-sim]
[DEBUG] [ioslib] Removing old log file: /Users/eharris/Library/Developer/CoreSimulator/Devices/580EE7BF-95C4-482A-B747-4E04F519CCCF/data/Containers/Data/Application/50A2C471-F8F0-47C0-9C4A-A237324E9989/Documents/4a6cdfac-5086-4276-8dba-b098a6b98bb6.log
[DEBUG] [ioslib] Executing: /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/3.4.2.v20141117130125/node_modules/ioslib/lib/ios-sim "launch" "/Users/eharris/Documents/Automation/appLocation/YMLApp/build/iphone/build/Debug-iphonesimulator/YMLApp.app" "--verbose" "--xcode-dir" "/Applications/Xcode-Beta.app/Contents/Developer" "--udid" "580EE7BF-95C4-482A-B747-4E04F519CCCF" "--timeout" "720"
[DEBUG] [ioslib] Executing: osascript "/Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/3.4.2.v20141117130125/node_modules/ioslib/lib/iphone_sim_activate.scpt" "/Applications/Xcode-Beta.app/Contents/Developer/Applications/iOS Simulator.app"
[DEBUG] [ioslib] [ios-sim] [DEBUG] App Spec: <DTiPhoneSimulatorApplicationSpecifier 0x7f837bd2fd60> specified by app path /Users/eharris/Documents/Automation/appLocation/YMLApp/build/iphone/build/Debug-iphonesimulator/YMLApp.app
[DEBUG] [ioslib] [ios-sim] [DEBUG] SDK Root: <DTiPhoneSimulatorSystemRoot 0x7f837bc1c180> path=/Applications/Xcode-Beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
[DEBUG] [ioslib] [ios-sim] [DEBUG] Creating named pipe at /var/folders/1b/xhytcm6170x9n3879xbsp9r00000gn/T//ios-sim-stderr-pipe-1416435327'
[DEBUG] [ioslib] [ios-sim] [DEBUG] Creating named pipe at /var/folders/1b/xhytcm6170x9n3879xbsp9r00000gn/T//ios-sim-stdout-pipe-1416435327'
[DEBUG] [ioslib] [ios-sim] [DEBUG] using device family iphone
[DEBUG] [ioslib] [ios-sim] [DEBUG] Comparing 580EE7BF-95C4-482A-B747-4E04F519CCCF == 580EE7BF-95C4-482A-B747-4E04F519CCCF
[DEBUG] [ioslib] [ios-sim] [DEBUG] set device to : iPhone 4s
[DEBUG] [ioslib] [ios-sim] [DEBUG] Session started
[DEBUG] [ioslib] Found application log file: /Users/eharris/Library/Developer/CoreSimulator/Devices/580EE7BF-95C4-482A-B747-4E04F519CCCF/data/Containers/Data/Application/FB3A05C4-4DF5-473F-8D2B-A4D625C3AACE/Documents/4a6cdfac-5086-4276-8dba-b098a6b98bb6.log
however on 3.4.1.GA the output is the following
[TRACE] :  ** BUILD SUCCEEDED **
[INFO] :   Finished building the application in 41s 683ms
[INFO] :   Launching iOS Simulator
[INFO] :   Project built successfully in 1m 4s 243ms
-- Start simulator log -------------------------------------------------------

Steps To Reproduce

1. Using 3.4.2 or 3.5.0 SDK build a project to an iOS Simulator with the log level set to trace
ti build -p ios -T simulator --log-level trace
2. After the simulator has launched check the output in the terminal

Actual Result

The output matches what is shown above and contains two \[DEBUG] tags

Expected Result

The output should not contain two tags

Comments

  1. Chris Barber 2014-11-19

    This is by design. That way we can run ios-sim from the command line as well as from the Titanium CLI and we can see the message level.
  2. Lee Morris 2017-03-23

    Closing ticket as invalid with reference to the above comments.

JSON Source