Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23139] iOS: iOS Simulator console logs not displayed frequently

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2016-04-11T08:31:29.000+0000
Affected Version/sRelease 5.2.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterFokke Zandbergen
AssigneeEric Merriman
Created2016-04-02T09:30:16.000+0000
Updated2017-03-23T22:49:40.000+0000

Description

Very frequently, after building an app to the iOS Simulator I see no logs:
[INFO]  Launching iOS Simulator
[TRACE] [ioslib] Selected iOS Simulator: iPhone 6s Plus
[TRACE] [ioslib]   UDID    = C7ECC4A2-E0F1-4248-B51E-5873696E719E
[TRACE] [ioslib]   iOS     = 9.3
[TRACE] [ioslib] Autoselected Xcode: 7.3
[TRACE] [ioslib] Removing old log file: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Data/Application/37BE02D1-A502-45EC-B670-25C3087760D3/Documents/15b42ec3-7d02-4d79-9bba-88673ad5fbcd.log
[TRACE] [ioslib] Tailing iPhone 6s Plus Simulator system log: /Users/fokkezb/Library/Logs/CoreSimulator/C7ECC4A2-E0F1-4248-B51E-5873696E719E/system.log
[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl shutdown C7ECC4A2-E0F1-4248-B51E-5873696E719E
[TRACE] [ioslib] iPhone 6s Plus Simulator was already shutdown
[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -CurrentDeviceUDID C7ECC4A2-E0F1-4248-B51E-5873696E719E
[TRACE] [ioslib] iPhone 6s Plus Simulator started
[TRACE] [ioslib] Running: osascript "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.2.1.GA/node_modules/ioslib/lib/sim_focus.scpt" "Simulator"
[TRACE] [ioslib] iPhone 6s Plus Simulator successfully focused
[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl install C7ECC4A2-E0F1-4248-B51E-5873696E719E /Users/fokkezb/dev/tests/req/build/iphone/build/Products/Debug-iphonesimulator/req.app
[TRACE] [ioslib] App installed
[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl launch C7ECC4A2-E0F1-4248-B51E-5873696E719E nl.fokkezb.req
[TRACE] [ioslib] App launched
[TRACE] [ioslib] Found application log file: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Data/Application/BD1971B8-282D-4F9D-8F52-92811C12AC79/Documents/15b42ec3-7d02-4d79-9bba-88673ad5fbcd.log
[TRACE] [req] assertion failed: 15E65 13E230: libxpc.dylib + 57882 [66C28065-C9DB-3C8E-926F-5A40210A6D1B]: 0x7d
But when I open the file mentioned in the second last line it does exist and has logs:
[INFO] Application started
[DEBUG] Reading stylesheet from: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Bundle/Application/080A078B-81C0-4C7B-95FD-C994909390C0/req.app/stylesheet.plist
[INFO] req/1.0 (5.2.1.23e1c7d)
[DEBUG] Loading: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Bundle/Application/080A078B-81C0-4C7B-95FD-C994909390C0/req.app/app.js, Resource: app_js
[DEBUG] Loading: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Bundle/Application/080A078B-81C0-4C7B-95FD-C994909390C0/req.app/folder/foo.js, Resource: folder/foo_js
[DEBUG] Loading: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Bundle/Application/080A078B-81C0-4C7B-95FD-C994909390C0/req.app/foo.js, Resource: foo_js
[INFO] Resources/foo.js
[INFO] Resources/folder/foo.js
[DEBUG] Application booted in 98.801970 ms

Comments

  1. Hans Knöchel 2016-04-02

  2. Angel Petkov 2016-04-04

    Yeah this should be fixed in the current master , it was to do with compile time logs being lost.
  3. Chee Kiat Ng 2016-04-04

    [~fokkezb] check this out see if we can close this ticket?
  4. Fokke Zandbergen 2016-04-08

    Hard to say since it doesn't always happen, but TIMOB-20588 talks about main thread (which I don't have enabled) and Studio (which I don't use)
  5. Angel Petkov 2016-04-08

    Main thread shouldn't be enabled , for the fix to work. Its just the one method thats we forced to run on main-thread so the logs don't get lost. The logging messages on compile time shouldn't be an issue now, did you test it with 5.4.0 ? You don't need to have studio open to test this.
  6. Fokke Zandbergen 2016-04-11

    Yes, seems to work. Notice the first line of 5.4 missing with 5.2.2 5.2.2
       [TRACE] [ioslib] App launched
       [TRACE] [ioslib] Found application log file: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Data/Application/2FB3D874-54B4-4BC9-B0DB-B229DACB6651/Documents/9edae89e-a1ef-42c8-9b54-1344805042a9.log
       [TRACE] [G.O. Tracker] assertion failed: 15E65 13E230: libxpc.dylib + 57882 [66C28065-C9DB-3C8E-926F-5A40210A6D1B]: 0x7d
       -- Start simulator log -------------------------------------------------------
       [DEBUG] Loading: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Bundle/Application/B00BC6CB-D19C-4251-A5CD-CC95BE819098/G.O. Tracker.app/app.js, Resource: app_js
       [DEBUG] Loading: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Bundle/Application/B00BC6CB-D19C-4251-A5CD-CC95BE819098/G.O. Tracker.app/alloy.js, Resource: alloy_js
       [DEBUG] Loading: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Bundle/Application/B00BC6CB-D19C-4251-A5CD-CC95BE819098/G.O. Tracker.app/alloy/underscore.js, Resource: alloy/underscore_js
       
    5.4.0
       [TRACE] [ioslib] App launched
       [TRACE] [ioslib] Found application log file: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Data/Application/D80A3A21-C6B9-42FB-8C49-618BAC06DB3B/Documents/9edae89e-a1ef-42c8-9b54-1344805042a9.log
       [TRACE] [G.O. Tracker] assertion failed: 15E65 13E230: libxpc.dylib + 57882 [66C28065-C9DB-3C8E-926F-5A40210A6D1B]: 0x7d
       -- Start simulator log -------------------------------------------------------
       [INFO]  G.O. Tracker/1.0 (5.4.0.61f08df)
       [DEBUG] Loading: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Bundle/Application/67AE8297-D154-48CB-94C4-6AAE232C0C21/G.O. Tracker.app/app.js, Resource: app_js
       [DEBUG] Loading: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/C7ECC4A2-E0F1-4248-B51E-5873696E719E/data/Containers/Bundle/Application/67AE8297-D154-48CB-94C4-6AAE232C0C21/G.O. Tracker.app/alloy.js, Resource: alloy_js
       
  7. Lee Morris 2017-03-23

    Closing ticket as Duplicate with reference to the above comments.

JSON Source