{ "id": "162806", "key": "TIMOB-23823", "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": [ { "id": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" }, { "id": "18288", "name": "ioslib 0.13.2", "archived": false, "released": true, "releaseDate": "2016-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-30T04:01:02.000+0000", "created": "2016-08-24T22:55:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-09-01T22:11:05.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "There is a bug in node-ios-device that occurs when you build an iOS app for device, then launch it. After the log output has been displayed, disconnect the device and the iOS build will detect the disconnection and shutdown the log relaying, however the new {{node-ios-device}} changes will now throw an error when trying to turn off syslog relaying for a device that isn't connected.\r\n\r\n{code}\r\n[TRACE] ** BUILD SUCCEEDED **\r\n[INFO] Finished building the application in 56s 251ms\r\n[INFO] Installing app on device: Milkshake\r\n[INFO] App successfully installed on device: Milkshake\r\nPlease manually launch the application or press CTRL-C to quit\r\n\r\n-- Start application log -----------------------------------------------------\r\n[DEBUG] Reading stylesheet from: /var/containers/Bundle/Application/5EEE6F9B-704E-4E2D-B508-D05A538DD331/testapp.app/stylesheet.plist\r\n[INFO] testapp/1.0 (6.1.0.46368b4)\r\n[DEBUG] Loading: /var/containers/Bundle/Application/5EEE6F9B-704E-4E2D-B508-D05A538DD331/testapp.app/app.js, Resource: app_js\r\n[DEBUG] { \r\n[DEBUG] prop = 42;\r\n[DEBUG] } \r\n[DEBUG] Loading: /var/containers/Bundle/Application/5EEE6F9B-704E-4E2D-B508-D05A538DD331/testapp.app/_app_props_.json, Resource: _app_props__json\r\n[INFO] n = 1\r\n[INFO] (null)\r\n[DEBUG] (null)\r\n[INFO] (null)\r\n[WARN] (null)\r\n[ERROR] (null)\r\n[TRACE] (null)\r\n[DEBUG] (null)\r\n[INFO] (null)\r\n[WARN] (null)\r\n[ERROR] (null)\r\n[DEBUG] Application booted in 510.275006 ms\r\n\r\n/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0/node_modules/node-ios-device/ios-device.js:200\r\n\t\t\tbinding.stopLogRelay(udid);\r\n ^\r\nError: Device '96b755565d7a18f229efb26408cdab44b7fc0255' not connected\r\n at Error (native)\r\n at stop (/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0/node_modules/node-ios-device/ios-device.js:200:12)\r\n at /Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0/node_modules/ioslib/lib/device.js:118:16\r\n at EventEmitter.handler (/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0/node_modules/node-ios-device/ios-device.js:102:12)\r\n at emitOne (events.js:77:13)\r\n at EventEmitter.emit (events.js:169:7)\r\n{code}\r\n\r\nNOTE: the device was disconnected after the \"Application booted...\" line.", "attachment": [], "flagged": false, "summary": "iOS: Error when device is disconnected while running a build", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 705, "state": "closed", "name": "2016 Sprint 18 Tooling", "startDate": "2016-08-27T00:16:26.485Z", "endDate": "2016-09-10T00:16:00.000Z", "completeDate": "2016-09-13T20:21:37.063Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "394316", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Published node-ios-device@0.11.2. PR https://github.com/appcelerator/node-ios-device/pull/23.\r\n\r\nPublished ioslib@0.13.2. PR https://github.com/appcelerator/ioslib/pull/41.\r\n\r\nTitanium Mobile master PR: https://github.com/appcelerator/titanium_mobile/pull/8265\r\n\r\nTitanium Mobile 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8266\r\n\r\nTitanium Mobile 5_5_X PR: https://github.com/appcelerator/titanium_mobile/pull/8267", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-24T23:34:13.000+0000", "updated": "2016-08-25T20:22:17.000+0000" }, { "id": "394455", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR and FT passed. when device is disconnected after launching the app, I see {{-- End application log ----------}\r\n\r\nPRs merged", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-26T03:11:23.000+0000", "updated": "2016-08-26T03:11:23.000+0000" }, { "id": "395148", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\nMacOS 10.12 (16A239m)\r\nStudio 4.7.1.201608190732\r\nTi SDK 5.5.0.v20160831204306\r\nAppc NPM 4.2.7\r\nAppc CLI 5.5.0-5\r\nAlloy 1.9.1\r\nXcode 8.0 (8S201h)\r\n\r\nDisconnecting a device while an app is running no longer throws an error. Instead a warning indicating the device is no longer connected is displayed. Tested by creating several apps, building them for devices, then disconnecting the devices while the app is running and printing messages to the console.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-01T22:11:05.000+0000", "updated": "2016-09-01T22:11:05.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }