{ "id": "161570", "key": "TIMOB-23614", "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" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-24T21:04:28.000+0000", "created": "2016-07-05T04:05:04.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.5.0", "watchOS3" ], "versions": [], "issuelinks": [ { "id": "52217", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "outwardIssue": { "id": "161668", "key": "TIMOB-23620", "fields": { "summary": "ioslib fails to choose a watch simulator under Xcode 8.0 Beta", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "52218", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "161064", "key": "TIMOB-23513", "fields": { "summary": "iOS10: Support for new WatchConnectivity features", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-08-24T21:04:46.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" } ], "attachment": [], "flagged": false, "summary": "iOS10: Titanium with Swift Watch App fails to build on Xcode 8.0 Beta", "creator": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Xcode 8.0 Beta\r\nLatest Titanium SDK master\r\nAppc cli 5.3.1-9\r\nappc npm 4.2.7-2", "closedSprints": [ { "id": 690, "state": "closed", "name": "2016 Sprint 17 Tooling", "startDate": "2016-08-13T00:01:26.394Z", "endDate": "2016-08-27T00:01:00.000Z", "completeDate": "2016-08-29T03:15:35.641Z", "originBoardId": 199 }, { "id": 679, "state": "closed", "name": "2016 Sprint 14 Tooling", "startDate": "2016-07-02T00:26:00.079Z", "endDate": "2016-07-16T00:26:00.000Z", "completeDate": "2016-07-18T03:19:39.426Z", "originBoardId": 199 }, { "id": 681, "state": "closed", "name": "2016 Sprint 15 Tooling", "startDate": "2016-07-16T00:19:13.868Z", "endDate": "2016-07-30T00:19:00.000Z", "completeDate": "2016-08-01T04:41:26.446Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "390256", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Saw this on Xcode 8 release notes. maybe useful:\r\n{quote}The version of Swift 2 (2.3) used in Xcode 8 is very close to the version used in Xcode 7.3.1. However, it has been updated for the newer SDKs, and therefore is not compatible with Swift frameworks compiled in Xcode 7.3.1. Distributing binary Swift frameworks remains unsupported in Xcode 8. (25680392){quote}", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-07-11T04:28:38.000+0000", "updated": "2016-07-11T04:28:38.000+0000" }, { "id": "390863", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~jvennemann] [~hansknoechel] The PR fixed partially the problem. Try the run case above again. you'll see this error:\r\n{code}\r\n[ERROR] Specified Watch Simulator \"C8C0ED0B-627A-4789-BD1B-DC70094737E9\" is not compatible with iOS Simulator \"507666A6-38FF-4972-9D8B-C11D9D20AD19\".\r\n{code}\r\n\r\nIf you check {{appc ti info}} you will see the device id and watch id does corresponding to iOS10 and watchOS 3.0 so for some reason it thinks it's an error. This might be an ioslib detection issue, that will require [~cbarber] to help take a look at.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-07-18T05:15:28.000+0000", "updated": "2016-07-18T05:15:28.000+0000" }, { "id": "390865", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The error is coming from ioslib. {{simctl}} does not tell which Watch Simulators can be paired with which iOS Simulators, so I created a lookup table that must be manually maintained: https://github.com/appcelerator/ioslib/blob/master/lib/simulator.js#L73-L96. It'll take some trial and error figure out the correct compatibility, but it should be pretty easy. I'd be happy to fix it when I'm back.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-07-18T05:40:36.000+0000", "updated": "2016-07-18T05:40:36.000+0000" }, { "id": "390875", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-18T07:23:27.000+0000", "updated": "2016-07-18T07:23:27.000+0000" }, { "id": "393555", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "I am still able to reproduce this issue. Here is the test case I ran:\r\n\r\n1. appc new --classic (and another project as a default Alloy Project)\r\n2. Enter project root\r\n3. appc new -t applewatch\r\n3. Specified the {{}} property in the tiapp.xml\r\n4. appc run -p ios -I 10.0 --launch-watch-app -l trace\r\n\r\n*Logs:*\r\n{code:java}\r\n[TRACE] /Users/harrybryant/Documents/Watch_Tests/watchTest4/build/iphone/extensions/watchTest4/watchTest4 WatchKit Extension/InterfaceController.swift:26:19: error: argument names for method 'awakeWithContext(context:)' do not match those of overridden method 'awakeWithContext'\r\n[TRACE] override func awakeWithContext(context: AnyObject?) {\r\n[TRACE] ^\r\n[TRACE] _ \r\n[TRACE] /Users/harrybryant/Documents/Watch_Tests/watchTest4/build/iphone/extensions/watchTest4/watchTest4 WatchKit Extension/InterfaceController.swift:26:19: error: 'awakeWithContext' has been renamed to 'awake(withContext:)'\r\n[TRACE] override func awakeWithContext(context: AnyObject?) {\r\n[TRACE] ^~~~~~~~~~~~~~~~\r\n[TRACE] awake withContext \r\n[TRACE] :0: note: 'awakeWithContext' has been explicitly marked unavailable here\r\n[TRACE] /Users/harrybryant/Documents/Watch_Tests/watchTest4/build/iphone/extensions/watchTest4/watchTest4 WatchKit Extension/InterfaceController.swift:20:37: error: 'defaultSession()' has been renamed to 'default()'\r\n[TRACE] let session = WCSession.defaultSession()\r\n[TRACE] ^~~~~~~~~~~~~~\r\n[TRACE] default\r\n[TRACE] :0: note: 'defaultSession()' has been explicitly marked unavailable here\r\n[TRACE] /Users/harrybryant/Documents/Watch_Tests/watchTest4/build/iphone/extensions/watchTest4/watchTest4 WatchKit Extension/InterfaceController.swift:22:21: error: 'activateSession()' has been renamed to 'activate()'\r\n[TRACE] session.activateSession()\r\n[TRACE] ^~~~~~~~~~~~~~~\r\n[TRACE] activate\r\n[TRACE] :0: note: 'activateSession()' has been explicitly marked unavailable here\r\n[TRACE] /Users/harrybryant/Documents/Watch_Tests/watchTest4/build/iphone/extensions/watchTest4/watchTest4 WatchKit Extension/InterfaceController.swift:27:15: error: 'awakeWithContext' has been renamed to 'awake(withContext:)'\r\n[TRACE] super.awakeWithContext(context)\r\n[TRACE] ^~~~~~~~~~~~~~~~\r\n[TRACE] awake withContext: \r\n[TRACE] :0: note: 'awakeWithContext' has been explicitly marked unavailable here\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] CompileSwift normal i386 /Users/harrybryant/Documents/Watch_Tests/watchTest4/build/iphone/extensions/watchTest4/watchTest4 WatchKit Extension/InterfaceController.swift\r\n[ERROR] CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler\r\n[ERROR] (2 failures)\r\n{code}\r\n\r\nTested On:\r\niPhone 6S (10.0) Simulator\r\nWatchOS3 (3.0) Simulator\r\nMac OSX El Capitan 10.11.6\r\nTi SDK: 5.5.0.v20160816120242\r\nAppc Studio: 4.7.0.201607250649\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.5.0-5\r\nXcode 8.0 beta 6 (8S193k)\r\nNode v4.4.7\r\n\r\n*Reopening Ticket.*\r\n\r\n\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-18T23:43:19.000+0000", "updated": "2016-08-18T23:43:19.000+0000" }, { "id": "393560", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Confirmed.\r\n\r\nHere's the TiSDK master PR for this ticket: https://github.com/appcelerator/titanium_mobile/pull/8120\r\n\r\n[~jvennemann] Please be sure to add a link to the PR in the ticket for which it resolves.\r\n\r\n[~jvennemann] Also, this PR needs to be backported to 5_5_X so that [~htbryant] can close this ticket. Thanks!", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-19T00:17:56.000+0000", "updated": "2016-08-19T00:17:56.000+0000" }, { "id": "393599", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Oh sorry, i must have missed to post the PR link for this one. Here is the 5.5.X backport: https://github.com/appcelerator/titanium_mobile/pull/8243", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-19T09:39:26.000+0000", "updated": "2016-08-19T09:39:26.000+0000" }, { "id": "393747", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "backport tested and merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-22T04:30:56.000+0000", "updated": "2016-08-22T04:30:56.000+0000" }, { "id": "393792", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Since the API changed when i did the original fix, the master and 6.0.x branch also need to be updated.\r\n\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/8248\r\nPR (6_0_X): https://github.com/appcelerator/titanium_mobile/pull/8249", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-22T17:11:12.000+0000", "updated": "2016-08-22T17:11:12.000+0000" }, { "id": "393948", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "I am still able to reproduce issue, tested with the latest SDK build (5.5.0.v20160822000355) and the same error occurs when trying to build. Checked the PR against my SDK under _templates/applewatch/watchos2-swift/template/{{WatchkitExtName}}/InterfaceController.swift.ejs_ and verified that the change is present. \r\n\r\n*Reopening Ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-23T16:44:44.000+0000", "updated": "2016-08-23T16:44:44.000+0000" }, { "id": "393950", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~htbryant], are you using the latest Xcode 8 Beta 6? ", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-23T16:52:47.000+0000", "updated": "2016-08-23T16:52:47.000+0000" }, { "id": "393999", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "[~jvennemann] I asked [~ewieber] to validate and he did not experience the issue. After further investigation I found that my xcode configuration was not as it should be. I removed my Xcode Beta and did a fresh install, and I no longer encounter the issue. I can confirm that I am able to build a Titanium app with a Swift Watch app on Xcode 8.0 Beta 6, for Simulators. \r\n\r\nHowever, I am encountering issues with Devices as a target. The Titanium app installs without problem on the iPhone 6S (iOS10 beta 7), but when attempting to install the app on the watch device, it fails to do so. This is currently under investigation by myself and [~ewieber], who will report on his findings when he gets the opportunity to validate. \r\n\r\nTested On:\r\niPhone 6S (10.0) Device & Simulator\r\nApple Watch (OS 3.0) Device & Simulator\r\nMac OSX El Capitan 10.11.6\r\nTi SDK: 5.5.0.v20160822000355\r\nAppc Studio: 4.7.1.201608190732\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.5.0-5\r\nVersion 8.0 beta 6 \r\nNode v4.4.7", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-23T22:55:19.000+0000", "updated": "2016-08-23T22:56:14.000+0000" }, { "id": "394085", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Probably somewhere the swift-version is set to 2.3 but needs to be 3.0 OR have the legacy-flag in it? -The {{MySwift.swift}} file has correct Swift 3 syntax (which is the same as Swift 2.x here, since it's a very simple {{UIImageView}}). #my2cents- \r\n\r\n*EDIT*: Whoops, that was for TIMOB-23808.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-24T12:21:22.000+0000", "updated": "2016-08-24T12:35:29.000+0000" }, { "id": "394086", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "The {{SWIFT_VERSION}} build settings in the extension's {{project.pbxproj}} should be set to 3.0. This will be set by [this template|https://github.com/appcelerator/titanium_mobile/blob/master/templates/applewatch/watchos2-swift/template/{{ExtName}}.xcodeproj/project.pbxproj.ejs#L336]. I think Xcode changed that when i opened the project manually and it still had old swift syntax in it, so that's another thing you could look at.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-24T12:28:30.000+0000", "updated": "2016-08-24T12:32:28.000+0000" }, { "id": "394288", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "[~jvennemann] [~hansknoechel] , \r\n\r\n[~ewieber] and I finally isolated the problem down to our provisioning profiles, and after removing our current ones and installing newly configured profiles, were able to install watch apps without any issue. Resolving this ticket as fixed.\r\n\r\nTested On:\r\niPhone 6S (10.0) Device & Simulator\r\nApple Watch (OS3) Device & Simulator\r\nMac OSX El Capitan 10.11.6\r\nTi SDK: 5.5.0.v20160822000355\r\nAppc Studio: 4.7.1.201608190732\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 5.5.0-5\r\nVersion 8.0 beta 6 (8S201h)\r\nNode v4.4.7\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-24T21:04:07.000+0000", "updated": "2016-08-24T21:04:07.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }