{ "id": "161844", "key": "TIMOB-23652", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-07-21T20:33:28.000+0000", "created": "2016-07-19T07:36:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "hyperloop", "ios10", "swift" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-20T20:02:28.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": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "When using swift sources in iOS 10 with Hyperloop (e.g. the [hyperloop-examples|https://github.com/appcelerator/hyperloop-examples] project), the problem fails with the following log: https://gist.github.com/hansemannn/7645aad70c821557cc6a99802b4a59ad\r\n\r\nThe main error is\r\n{quote}\r\n[ERROR] :0: warning: using sysroot for 'iPhoneSimulator' but targeting 'MacOSX'\r\n{quote}\r\n\r\nI guess it is a dynlib that is hardcoded somewhere and / or the renaming from MacOSX to macOS.\r\n\r\nSteps to reproduce:\r\n1. Download the latest Hyperloop version from [here|https://github.com/appcelerator/hyperloop.next/releases]\r\n2. Include the module in the hyperloop-examples project\r\n3. Run the project\r\n\r\nExpected behavior:\r\nThe build finishes successfully and you can access the Swift example\r\n\r\nActual behavior:\r\nThe build fails with the above error", "attachment": [], "flagged": false, "summary": "iOS10: Unable to build Hyperloop projects containing Swift sources", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Hyperloop 1.2.4\r\niOS 10\r\nXcode 8 Beta 2", "comment": { "comments": [ { "id": "390988", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "More infos: We are trying to run {{swiftc -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk -dump-ast /Users/hans/Documents/Apps/hyperloop-examples/src/MySwift.swift}} that fails.\r\n\r\nWe don't go into the if-statement that sets the target, because xcodeTargetOS is {{iphonesimulator}} and not {{iphoneos}}. If we add it to the statement, {{-target armv7-apple-ios7.1}} is added, because iOS 7.1 is our mininum SDK. Unfortunately, that still does not work. I thought changing it to 10.0, but that does not change much.\r\n\r\n*Update*: Changing the following line in swift.js generates the correct metabase:\r\n{code:javascript}\r\nif (xcodeTargetOS === 'iphoneos' || xcodeTargetOS === 'iphonesimulator') {\r\n\targs.push('-target');\r\n\targs.push((xcodeTargetOS === 'iphoneos' ? 'armv7' : 'i386') + '-apple-ios' + iosMinVersion);\r\n}\r\n{code}\r\n\r\nBut in the very end, it complains about a corrupt Info.plist (which I THINK we fixed in another open PR, right??): \r\n{quote}\r\n[ERROR] Failed to parse app's Info.plist: /Users/hans/Documents/Apps/hyperloop-examples/build/iphone/build/Products/Debug-iphonesimulator/Hyperloop_Sample.app/Info.plist\r\n{quote}\r\n\r\n*Update 2*: It's TIMOB-23518 and it works on Titanium 6.0.\r\n\r\n[~cng] [~jvennemann]", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-19T08:19:55.000+0000", "updated": "2016-07-19T08:50:22.000+0000" }, { "id": "390990", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/hyperloop.next/pull/42", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-19T08:51:55.000+0000", "updated": "2016-08-14T10:09:26.000+0000" }, { "id": "413882", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T20:02:28.000+0000", "updated": "2017-03-20T20:02:28.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }