{ "id": "175391", "key": "TIMOB-28062", "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": "21051", "description": "", "name": "Release 9.2.0", "archived": false, "released": true, "releaseDate": "2020-09-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-08-17T18:51:42.000+0000", "created": "2020-08-02T12:08:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "swift", "switf-compatible" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-09-13T19:44:35.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": "Since Facebook SDK 7.0.0, their iOS SDK requires the project to contain at least one \".swift\" file. Otherwise the build fails due to missing Swift standard libraries. And although Titanium already enables Swift for module compatibility, it does not seem to be enough so far.\r\n\r\nThe same issue is happening for other app frameworks like React Native and they workaround it by adding it to the Xcode project (which is not generated their but stable, an option Titanium has not).\r\n\r\nImportance of the Facebook SDK 7+ upgrade: They fixed an issue with random server errors crashing the whole app that uses it, therefore it's a critical update developers should perform.", "attachment": [], "flagged": false, "summary": "iOS: Titanium not compatible with new Facebook SDK versions due to missing Swift files", "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": null, "closedSprints": [ { "id": 1204, "state": "closed", "name": "2020 Sprint 17", "startDate": "2020-08-17T15:48:00.000Z", "endDate": "2020-08-28T15:48:00.000Z", "completeDate": "2020-08-31T15:36:28.040Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "456324", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/11873\r\nAn alternative would be to generate a Swift file and add it to the pbxproj manually, but starting to move ObjC classes to Swift seems a better way.\r\n\r\nTest Case (On click of button it should log macaddress) -\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Trigger'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n Ti.API.info(Ti.Platform.macaddress);\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-02T16:36:38.000+0000", "updated": "2020-08-07T02:48:36.000+0000" }, { "id": "456770", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*. Fix verified in SDK version {{9.2.0.v20200908050955}}, and {{9.3.0.v20200908051946}}. Tested using the test case provided above. \r\n\r\n*Test and other information can be found at:*\r\nhttps://github.com/appcelerator/titanium_mobile/pull/11873\r\n\r\n*Test Environment*\r\n{code:java}\r\nMacOS Big Sur: 11.0 Beta 5\r\nXcode: 12.0 Beta 6\r\nJava Version: 1.8.0_242\r\nAndroid NDK: 21.3.6528147\r\nNode.js: 12.18.1\r\n\"\"NPM\":\"5.0.0\",\"CLI\":\"8.1.0-master.11\"\"\r\niphone 8 Sim (14.0 Beta)\r\n{code}\r\n\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-08T17:07:39.000+0000", "updated": "2020-09-08T17:07:39.000+0000" }, { "id": "456865", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This may caused a regression on incremental builds: TIMOB-28130", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-09-13T19:44:35.000+0000", "updated": "2020-09-13T19:44:35.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }