[TIMOB-23139] iOS: iOS Simulator console logs not displayed frequently
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2016-04-11T08:31:29.000+0000 |
Affected Version/s | Release 5.2.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Eric Merriman |
Created | 2016-04-02T09:30:16.000+0000 |
Updated | 2017-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
Yeah this should be fixed in the current master , it was to do with compile time logs being lost.
[~fokkezb] check this out see if we can close this ticket?
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)
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.
Yes, seems to work. Notice the first line of 5.4 missing with 5.2.2 5.2.2
5.4.0
Closing ticket as Duplicate with reference to the above comments.