[TIMOB-20069] NSLog calls in Watch extension not shown in console
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 5.1.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | cb-tooling |
Reporter | Fokke Zandbergen |
Assignee | Chris Barber |
Created | 2015-11-26T08:14:05.000+0000 |
Updated | 2016-08-23T05:21:43.000+0000 |
Description
When I add
NSLog(\@"Hello");
to the showLog
function [here](https://github.com/appcelerator-developer-relations/appc-sample-watchos2/blob/master/extensions/WatchOS2/WatchOS2%20WatchApp%20Extension/InterfaceController.m#L54) and run the iOS + Apple Watch app in iOS Simulator or on device I don't see "Hello" anywhere.
The trace logs mention tailing the Apple Watch simulator logs but in the end all that is displayed is the _application log file_ it finds just before the -- Start simulator log --
line.
[TRACE] ** BUILD SUCCEEDED **
[INFO] Finished building the application in 6s 989ms
[INFO] Launching iOS Simulator
[TRACE] [ioslib] Found watchOS 2.0 app: com.appcelerator.sample.watchos2.watchkitapp
[TRACE] [ioslib] Selected iOS Simulator: iPhone 6s Plus
[TRACE] [ioslib] UDID = F67B333A-F4FE-4E2E-A67F-C862F77FF882
[TRACE] [ioslib] iOS = 9.1
[TRACE] [ioslib] Selected WatchOS Simulator: Apple Watch - 42mm
[TRACE] [ioslib] UDID = F75521EE-96D1-47EC-A6BA-339A4B9F9231
[TRACE] [ioslib] WatchOS = 2.0
[TRACE] [ioslib] Autoselected Xcode: 7.1.1
[TRACE] [ioslib] Removing old log file: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/F67B333A-F4FE-4E2E-A67F-C862F77FF882/data/Containers/Data/Application/B833E7AA-79AF-46C1-85E2-C0DA976CB2AA/Documents/11111111-1111-1111-1111-111111111111.log
[TRACE] [ioslib] iOS and watchOS simulators already paired
[TRACE] [ioslib] Tailing iPhone 6s Plus Simulator system log: /Users/fokkezb/Library/Logs/CoreSimulator/F67B333A-F4FE-4E2E-A67F-C862F77FF882/system.log
[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl shutdown F67B333A-F4FE-4E2E-A67F-C862F77FF882
[TRACE] [ioslib] iPhone 6s Plus Simulator was already shutdown
[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -CurrentDeviceUDID F67B333A-F4FE-4E2E-A67F-C862F77FF882
[TRACE] [ioslib] iPhone 6s Plus Simulator started
[TRACE] [ioslib] Tailing Apple Watch - 42mm Simulator system log: /Users/fokkezb/Library/Logs/CoreSimulator/F75521EE-96D1-47EC-A6BA-339A4B9F9231/system.log
[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl shutdown F75521EE-96D1-47EC-A6BA-339A4B9F9231
[TRACE] [ioslib] Apple Watch - 42mm Simulator was already shutdown
[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/Applications/Simulator (Watch).app/Contents/MacOS/Simulator (Watch) -CurrentDeviceUDID F75521EE-96D1-47EC-A6BA-339A4B9F9231
[TRACE] [ioslib] Apple Watch - 42mm Simulator started
[TRACE] [ioslib] Running: osascript "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/ioslib/lib/sim_focus.scpt" "Simulator (Watch)"
[TRACE] [ioslib] Apple Watch - 42mm Simulator successfully focused
[TRACE] [ioslib] Running: osascript "/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.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 F67B333A-F4FE-4E2E-A67F-C862F77FF882 /Users/fokkezb/dev/samples/appc-sample-watchos2/build/iphone/build/Products/Debug-iphonesimulator/WatchOS2.app
[TRACE] [ioslib] App installed
[TRACE] [ioslib] Waiting for Watch App to install...
[TRACE] [ioslib] Watch App installed successfully!
[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl launch F75521EE-96D1-47EC-A6BA-339A4B9F9231 com.appcelerator.sample.watchos2.watchkitapp
[TRACE] [ioslib] Watch app launched
[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl launch F67B333A-F4FE-4E2E-A67F-C862F77FF882 com.appcelerator.sample.watchos2
[TRACE] [ioslib] App launched
[TRACE] [ioslib] Found application log file: /Users/fokkezb/Library/Developer/CoreSimulator/Devices/F67B333A-F4FE-4E2E-A67F-C862F77FF882/data/Containers/Data/Application/2E929123-364C-4983-A94C-440C1CBE7652/Documents/11111111-1111-1111-1111-111111111111.log
[TRACE] [WatchOS2] assertion failed: 15B42 13B137: libxpc.dylib + 58126 [0F47719F-3076-3664-A64B-CEB6901B254D]: 0x7d
-- Start simulator log -------------------------------------------------------
[INFO] Application started
[INFO] WatchOS2/1.0 (5.1.1.e46100b)
[INFO] Ti.WatchSession.isSupported true
[INFO] Ti.WatchSession.isPaired true
[INFO] Ti.WatchSession.isWatchAppInstalled true
[INFO] Ti.WatchSession.isComplicationEnabled false
[INFO] Ti.WatchSession.isReachable true
[INFO] Ti.WatchSession.recentApplicationContext {}
No comments