{ "id": "153459", "key": "TIMOB-20069", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2015-11-26T08:14:05.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "cb-tooling" ], "versions": [ { "id": "17532", "name": "Release 5.1.1", "archived": false, "released": true, "releaseDate": "2015-11-24" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-08-23T05:21:43.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "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.\r\n\r\nThe 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.\r\n\r\n{code}\r\n[TRACE] ** BUILD SUCCEEDED **\r\n[INFO] Finished building the application in 6s 989ms\r\n[INFO] Launching iOS Simulator\r\n[TRACE] [ioslib] Found watchOS 2.0 app: com.appcelerator.sample.watchos2.watchkitapp\r\n[TRACE] [ioslib] Selected iOS Simulator: iPhone 6s Plus\r\n[TRACE] [ioslib] UDID = F67B333A-F4FE-4E2E-A67F-C862F77FF882\r\n[TRACE] [ioslib] iOS = 9.1\r\n[TRACE] [ioslib] Selected WatchOS Simulator: Apple Watch - 42mm\r\n[TRACE] [ioslib] UDID = F75521EE-96D1-47EC-A6BA-339A4B9F9231\r\n[TRACE] [ioslib] WatchOS = 2.0\r\n[TRACE] [ioslib] Autoselected Xcode: 7.1.1\r\n[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\r\n[TRACE] [ioslib] iOS and watchOS simulators already paired\r\n[TRACE] [ioslib] Tailing iPhone 6s Plus Simulator system log: /Users/fokkezb/Library/Logs/CoreSimulator/F67B333A-F4FE-4E2E-A67F-C862F77FF882/system.log\r\n[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl shutdown F67B333A-F4FE-4E2E-A67F-C862F77FF882\r\n[TRACE] [ioslib] iPhone 6s Plus Simulator was already shutdown\r\n[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -CurrentDeviceUDID F67B333A-F4FE-4E2E-A67F-C862F77FF882\r\n[TRACE] [ioslib] iPhone 6s Plus Simulator started\r\n[TRACE] [ioslib] Tailing Apple Watch - 42mm Simulator system log: /Users/fokkezb/Library/Logs/CoreSimulator/F75521EE-96D1-47EC-A6BA-339A4B9F9231/system.log\r\n[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl shutdown F75521EE-96D1-47EC-A6BA-339A4B9F9231\r\n[TRACE] [ioslib] Apple Watch - 42mm Simulator was already shutdown\r\n[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/Applications/Simulator (Watch).app/Contents/MacOS/Simulator (Watch) -CurrentDeviceUDID F75521EE-96D1-47EC-A6BA-339A4B9F9231\r\n[TRACE] [ioslib] Apple Watch - 42mm Simulator started\r\n[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)\"\r\n[TRACE] [ioslib] Apple Watch - 42mm Simulator successfully focused\r\n[TRACE] [ioslib] Running: osascript \"/Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/node_modules/ioslib/lib/sim_focus.scpt\" \"Simulator\"\r\n[TRACE] [ioslib] iPhone 6s Plus Simulator successfully focused\r\n[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\r\n[TRACE] [ioslib] App installed\r\n[TRACE] [ioslib] Waiting for Watch App to install...\r\n[TRACE] [ioslib] Watch App installed successfully!\r\n[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl launch F75521EE-96D1-47EC-A6BA-339A4B9F9231 com.appcelerator.sample.watchos2.watchkitapp\r\n[TRACE] [ioslib] Watch app launched\r\n[TRACE] [ioslib] Running: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl launch F67B333A-F4FE-4E2E-A67F-C862F77FF882 com.appcelerator.sample.watchos2\r\n[TRACE] [ioslib] App launched\r\n[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\r\n[TRACE] [WatchOS2] assertion failed: 15B42 13B137: libxpc.dylib + 58126 [0F47719F-3076-3664-A64B-CEB6901B254D]: 0x7d\r\n-- Start simulator log -------------------------------------------------------\r\n[INFO] Application started\r\n[INFO] WatchOS2/1.0 (5.1.1.e46100b)\r\n[INFO] Ti.WatchSession.isSupported true\r\n[INFO] Ti.WatchSession.isPaired true\r\n[INFO] Ti.WatchSession.isWatchAppInstalled true\r\n[INFO] Ti.WatchSession.isComplicationEnabled false\r\n[INFO] Ti.WatchSession.isReachable true\r\n[INFO] Ti.WatchSession.recentApplicationContext {}\r\n{code}", "attachment": [], "flagged": false, "summary": "NSLog calls in Watch extension not shown in console", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.1.1.GA\r\nTi CLI 5.0.5", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }