{ "id": "175931", "key": "TIMOB-28304", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "21191", "name": "Release 9.3.2", "archived": false, "released": true, "releaseDate": "2021-02-11" }, { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-02-02T15:24:41.000+0000", "created": "2020-12-23T23:09:23.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_build", "swift" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-02-02T15:25:01.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" } ], "description": "In Objc based module if we add swift file and build, it is failing with error - \r\n\r\n{code:java}\r\nerror: using bridging headers with module interfaces is unsupported.\r\n{code}\r\n\r\nThe reason is that we are using [BUILD_LIBRARY_FOR_DISTRIBUTION=YES|https://github.com/appcelerator/titanium_mobile/blob/c3de1e1b9029f6cc9bed9162dde27ff5058c6835/iphone/cli/commands/_buildModule.js#L575] for building module. Ideally it should be used when we build for framework. For static libraries it should be default. Some details can be found [here|https://handyopinion.com/xcode-error-using-bridging-headers-with-module-interfaces-is-unsupported/] and [here|https://swift.org/blog/library-evolution/] .", "attachment": [], "flagged": false, "summary": "iOS: Enabling swift in Objc based module is failing while building", "creator": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1214, "state": "closed", "name": "2021 Sprint 1", "startDate": "2021-01-04T17:38:57.886Z", "endDate": "2021-01-15T17:38:00.000Z", "completeDate": "2021-01-15T20:35:11.006Z", "originBoardId": 114 }, { "id": 1215, "state": "closed", "name": "2021 Sprint 2", "startDate": "2021-01-18T20:36:00.000Z", "endDate": "2021-01-29T20:36:00.000Z", "completeDate": "2021-01-31T17:42:28.052Z", "originBoardId": 114 }, { "id": 1216, "state": "closed", "name": "2021 Sprint 3", "startDate": "2021-02-01T17:42:00.000Z", "endDate": "2021-02-12T17:42:00.000Z", "completeDate": "2021-02-12T22:01:52.235Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457982", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/12372\r\n\r\nHow to test - \r\n 1. Create a Objc based module or use the existing Objc based module e.g. ti.nfc\r\n2. Open ti.nfc.xcodeproj in Xcode.\r\n3. Add a swift file in the project.\r\n4. On showing alert 'Would you like to configure an Objective-C bridging header?', select 'Create Bridging Header' button.\r\n5. Now build the module using CLI. It should build the module without error.\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-06T20:05:47.000+0000", "updated": "2021-01-06T20:05:47.000+0000" }, { "id": "458134", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master for 10.0.0 target. Backport PR for 9_3_X is in progress (for potential 9.3.2 release)", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-02-02T14:48:50.000+0000", "updated": "2021-02-02T14:48:50.000+0000" }, { "id": "458137", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to 9_3_X for potential 9.3.2", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-02-02T15:25:01.000+0000", "updated": "2021-02-02T15:25:01.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }