{ "id": "163215", "key": "TIMOB-23905", "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": "2016-09-14T22:37:02.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "cb-tooling", "engReviewed", "qe-5.5.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" }, { "id": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" }, { "id": "18322", "name": "Release 5.5.1", "archived": false, "released": true, "releaseDate": "2016-09-28" } ], "issuelinks": [ { "id": "52723", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "163162", "key": "TIMOB-23894", "fields": { "summary": "iOS: -I flag not acknowledged when selecting iOS9 and watchos2.2 using iOS sdk 10.0", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2020-01-30T19:09:46.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": "I receive the below error when trying to build for iOS 9.0 and WatchOS 2.0 sims using the iOS SDK 9.3 or 9.2. One example command is: {{appc run --platform ios --log-level trace --ios-version 9.3 --sim-version 9.0 --watch-device-id E5CE2E3B-84AB-453B-B3FE-0BDD4BBBCBE4 --launch-watch-app --device-id 5C5D053D-D4AE-451F-8573-2E4174315471}}\r\nThe error received is:\r\n{code}\r\n[ERROR] : ** BUILD FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : \tCompileSwift normal i386 /Users/Eric/Documents/Appcelerator_Studio_Workspace/ClassicWatch3/build/iphone/extensions/ClassicWatch3/ClassicWatch3 WatchKit Extension/NotificationController.swift\r\n[ERROR] : \tCompileSwift normal i386 /Users/Eric/Documents/Appcelerator_Studio_Workspace/ClassicWatch3/build/iphone/extensions/ClassicWatch3/ClassicWatch3 WatchKit Extension/ExtensionDelegate.swift\r\n[ERROR] : \tCompileSwift normal i386 /Users/Eric/Documents/Appcelerator_Studio_Workspace/ClassicWatch3/build/iphone/extensions/ClassicWatch3/ClassicWatch3 WatchKit Extension/InterfaceController.swift\r\n[ERROR] : \tCompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler\r\n[ERROR] : (4 failures)\r\n{code}\r\n\r\n*Steps to reproduce issue*\r\n1. Create a new project\r\n2. Add a WatchOS app to your project\r\n3. Build the project for simulators {{iOS 9.0/WatchOS 2.0}} using the {{iOS SDK 9.3}} (you can set this in the run configurations, if in Studio)\r\n\r\n*Expected Results*\r\nThe app builds and runs without issue\r\n\r\n*Actual Results*\r\nThe build fails with the above error\r\n\r\n*Notes*\r\nI have encountered this and received the below error in Studio, but the above error is shown in the CLI with the same command:\r\n{code}\r\n[TRACE] : [ioslib] Waiting for Watch App to install...\r\n[ERROR] : Watch App installation failure: __96-[SPCompanionAppInstaller sendInstallationDataWithPath:dataType:name:info:installer:completion:]_block_invoke337, fileHandle == nil for com.appc.classic.watchkitapp, path: /Users/Eric/Library/Developer/CoreSimulator/Devices/F1F70A5E-331E-4051-86BA-0B550180CFEF/data/Library/Caches/com.apple.companionappd/com.appc.classic.watchkitapp.zip\r\n{code}\r\n\r\nThese are the sims/xcode version selected:\r\n{code}\r\n[TRACE] : [ioslib] Selected iOS Simulator: iPhone 5\r\n[TRACE] : [ioslib] UDID = 5C5D053D-D4AE-451F-8573-2E4174315471\r\n[TRACE] : [ioslib] iOS = 9.0\r\n[TRACE] : [ioslib] Selected WatchOS Simulator: Apple Watch - 38mm\r\n[TRACE] : [ioslib] UDID = E5CE2E3B-84AB-453B-B3FE-0BDD4BBBCBE4\r\n[TRACE] : [ioslib] WatchOS = 2.0\r\n[TRACE] : [ioslib] Autoselected Xcode: 7.3.1\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Build fails when selecting iOS 9.0 and watchOS 2.0 using iOS SDK 9.3 or 9.2", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "MacOS 10.12 (16A313a)\r\nStudio 4.7.1.201609100950\r\nTi SDK 5.5.0.GA\r\nAppc NPM 4.2.7\r\nAppc CLI 5.5.0\r\nAlloy 1.9.2\r\nXcode 8.0 (8A218a)", "comment": { "comments": [ { "id": "396173", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~jvennemann] is this because of the template created when you do *appc new -t applewatch* ?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-14T22:41:11.000+0000", "updated": "2016-09-14T22:41:11.000+0000" }, { "id": "396213", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Yes the template is created during project creation and targeted for Swift 3.0 since 5.5.0. So trying to later run the project with iOS SDK 9.3 and Xcode 7/Swift 2.3 will result in the described error. Maybe we can introduce a new option when running {{appc new -t applewatch}} which allows to choose either a Swift 2 or Swift 3 template? But this doesn't prevent the user from changing the iOS version later on. Another solution could be to improve the error handling and print a more user friendly message stating the the Swift code needs to be changed in order to run with older Swift versions.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-15T14:16:29.000+0000", "updated": "2016-09-15T14:17:06.000+0000" }, { "id": "396230", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "we can do both solution. there's already a way to select the template on appc cli. I think our users are ok, as long as we explain. And yes lets have a more user friendly message.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-15T16:19:58.000+0000", "updated": "2016-09-15T16:19:58.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }