{ "id": "175928", "key": "TIMOB-28303", "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": "21177", "name": "Release 9.3.1", "archived": false, "released": true, "releaseDate": "2021-01-26" } ], "resolution": null, "resolutiondate": null, "created": "2020-12-19T12:41:54.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "xcode" ], "versions": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-01-05T14:43:59.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": [], "description": "I'm filing this ticket since multiple people on Slack are reporting build errors with the latest Xcode 12.3:\r\nhttps://ti-slack.slack.com/archives/C03CVQX2A/p1608033847217400\r\nhttps://ti-slack.slack.com/archives/C03CVQX2A/p1608193731266100\r\n\r\nThe error is:\r\n{code}\r\nerror: Building for iOS Simulator, but the linked and embedded framework 'SDWebImage.framework' was built for iOS + iOS Simulator\r\n{code}\r\nor \r\n{code}\r\nModules\r\nTi.Animation\r\n[TRACE] error: Building for iOS Simulator, but the linked and embedded framework 'Lottie.framework' was built for iOS + iOS Simulator. (in target 'app' from project 'app')\r\n\r\nAV.ImageView\r\n[TRACE] error: Building for iOS Simulator, but the linked and embedded framework 'SDWebImage.framework' was built for iOS + iOS Simulator. (in target 'app' from project 'app'\r\n{code}\r\n\r\nAccording to Stackoverflow https://stackoverflow.com/a/65306886/5193915 you have to set: Validate Workspace to Yes\r\n\r\nAnother solutions would be removing archiitectures from the modules\r\n\r\nsimulator\r\n{code}\r\nlipo -info Lottie.framework/Lottie\r\n lipo -remove armv7 Lottie.framework/Lottie -output Lottie.framework/Lottie\r\n lipo -remove arm64 Lottie.framework/Lottie -output Lottie.framework/Lottie\r\n{code}\r\n\r\ndevice:\r\n{code}\r\nlipo -info Lottie.framework/Lottie\r\n lipo -remove i386 Lottie.framework/Lottie -output Lottie.framework/Lottie\r\n lipo -remove x86_64 Lottie.framework/Lottie -output Lottie.framework/Lottie\r\n{code}\r\n\r\nA downgrade to Xcode 12.2 is the best solution at the moment", "attachment": [], "flagged": false, "summary": "Xcode 12.3: Unable to build an app with modules that include third-party SDKs", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "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 } ], "comment": { "comments": [ { "id": "457944", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/12354\r\n\r\n*tl;dr:* For all users that cannot wait for this to be released: Just copy the file from the PR to {{~/Library/Application Support/Titanium/mobilesdk/osx/YOUR_SDK_VERSION/iphone/iphone/Titanium.xcodeproj/project.pbxproj}}.\r\n\r\nNote 1: The title of this ticket should be renamed to \"Unable to build an app with modules that include third-party SDKs\", since apps without external SDKs will not have this issue. Also, if the third-party SDK is already built as an .xcframework (thats what Apple tries to push with this new error/warning), the app will not have any issues. So once all modules are updated to use .xcframework versions of their external SDK's, we'll not need this build setting anymore. Note that modules themselves already compile to a .xcframework since SDK 9.2.0 (which is REALLY great), so this only affects third-party vendors.\r\n\r\nNote 2: The description mentions \"Xcode 13.2\", which is probably a typo, because it's 12.3 like in the title.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-12-19T17:36:24.000+0000", "updated": "2020-12-19T18:50:45.000+0000" }, { "id": "457945", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks! Fixed the title + description", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-12-19T17:43:24.000+0000", "updated": "2020-12-19T17:43:24.000+0000" }, { "id": "457952", "author": { "name": "jasonkneen", "key": "jasonkneen", "displayName": "Jason Kneen", "active": true, "timeZone": "Europe/London" }, "body": "This is a massive breaking change for many users -- PLEASE get this PR approved and committed and a back port for 9.3.0.GA and 9.2.2.GA or 9.3.1.GA and 9.2.3.GA -- Hans has kindly posted a quick fix in slack but this is a big blow to anyone whose Xcode has updated automatically.", "updateAuthor": { "name": "jasonkneen", "key": "jasonkneen", "displayName": "Jason Kneen", "active": true, "timeZone": "Europe/London" }, "created": "2020-12-24T13:24:39.000+0000", "updated": "2020-12-24T13:24:39.000+0000" }, { "id": "457967", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for Jenkins build.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-05T00:53:39.000+0000", "updated": "2021-01-05T00:53:39.000+0000" }, { "id": "457970", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to master for 10.0.0 target, backports merged to 9_2_X and 9_3_X branches (for potential 9.3.1 release).", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-01-05T14:43:59.000+0000", "updated": "2021-01-05T14:43:59.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }