{ "id": "164710", "key": "TIMOB-24180", "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-11-29T16:35:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "18247", "name": "Hyperloop 2.0.0", "archived": false, "released": true, "releaseDate": "2016-10-18" } ], "issuelinks": [ { "id": "54770", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "167315", "key": "TIMOB-24632", "fields": { "summary": "Hyperloop: iOS - Swift metabase parser using SourceKit", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T19:55:56.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": "13715", "name": "Hyperloop", "description": "Hyperloop project" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Steps to reproduce the behavior*\r\n1. Create a new Hyperloop enabled project\r\n2. Add the following sample code under {{src}}:\r\n{{MySwift.swift}}\r\n{code:swift}\r\nimport Foundation\r\n\r\npublic class MySwift {\r\n\tinit() {\r\n\t\tlet test = Test()\r\n\t}\r\n}\r\n\r\n{code}\r\n\r\n{{Test.swift}}\r\n{code}\r\nimport Foundation\r\n\r\npublic class Test {\r\n public func sayHello() {\r\n print(\"Hello\")\r\n }\r\n}\r\n{code}\r\n3. Add a {{appc.js}} to the project root with the following content:\r\n{code}\r\nmodule.exports = {\r\n\ttype: 'app',\r\n\tgroup: 'titanium',\r\n\thyperloop: {\r\n\t\tios: {\r\n\t\t\tthirdparty: {\r\n\t\t\t\t'MyFramework': {\r\n\t\t\t\t\tsource: ['src'],\r\n\t\t\t\t\theader: 'src',\r\n\t\t\t\t\tresource: 'src'\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n};\r\n{code}\r\n4. Add {{var MySwift = require('MyFramework/MySwift');}} to {{app/controller/index.js}} to trigger Hyperloop's metabase generation\r\n5. Build the project with {{appc run -p ios}}\r\n\r\n*Actual behavior*\r\nMetabase generation fails with the following error:\r\n{code}\r\n[INFO] Generating metabase for swift MyFramework /Users/jvennemann/Development/appc/hyperloop-examples/src/MySwift.swift\r\n[ERROR] /Users/jvennemann/Development/appc/hyperloop-examples/src/MySwift.swift:5:14: error: use of unresolved identifier 'Test'\r\n{code}\r\n\r\n*Expected behavior*\r\nMetabase generation succeeds and one can reference types from other Swift source files.", "attachment": [], "flagged": false, "summary": "Hyperloop: iOS - Swift files referencing each other break metabase generation", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": "appc-cli 6.0.0\r\nTiSDK 6.0.0\r\nHyperloop 2.0.0", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }