{ "id": "175590", "key": "TIMOB-28159", "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": "21092", "name": "Release 9.2.1", "archived": false, "released": true, "releaseDate": "2020-10-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-10-06T15:53:17.000+0000", "created": "2020-10-02T00:26:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "21051", "description": "", "name": "Release 9.2.0", "archived": false, "released": true, "releaseDate": "2020-09-23" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-10-06T15:53:17.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": "h5.Steps to reproduce:\r\n1. Create an IOS swift module with SDK 9.1.0.GA.\r\n2. Build the module with SDK 9.2.0.GA.\r\n\r\nh5.Actual result:\r\n1. The build fails with:\r\n{code}\r\n[TRACE] [xcode-sim] ld: warning: ignoring file /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/9.2.0.GA/iphone/Frameworks/TitaniumKit.xcframework/ios-arm64_armv7/TitaniumKit.framework/TitaniumKit, missing required architecture i386 in file /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/9.2.0.GA/iphone/Frameworks/TitaniumKit.xcframework/ios-arm64_armv7/TitaniumKit.framework/TitaniumKit (2 slices)\r\n[TRACE] [xcode-sim] Undefined symbols for architecture i386:\r\n[TRACE] [xcode-sim] \"_OBJC_METACLASS_$_TiModule\", referenced from:\r\n[TRACE] [xcode-sim] _OBJC_METACLASS_$_ComAppTestmodModule in ComAppTestmodModule.o\r\n[TRACE] [xcode-sim] \"_OBJC_CLASS_$_TiUtils\", referenced from:\r\n[TRACE] [xcode-sim] objc-class-ref in ComAppTestmodExampleProxy.o\r\n[TRACE] [xcode-sim] \"_OBJC_CLASS_$_TiApp\", referenced from:\r\n[TRACE] [xcode-sim] objc-class-ref in ComAppTestmodModule.o\r\n[TRACE] [xcode-sim] \"_OBJC_CLASS_$_TiModule\", referenced from:\r\n[TRACE] [xcode-sim] type metadata for ComAppTestmod.ComAppTestmodModule in ComAppTestmodModule.o\r\n[TRACE] [xcode-sim] \"_OBJC_CLASS_$_TiProxy\", referenced from:\r\n[TRACE] [xcode-sim] type metadata for ComAppTestmod.ComAppTestmodExampleProxy in ComAppTestmodExampleProxy.o\r\n[TRACE] [xcode-sim] \"_OBJC_METACLASS_$_TiProxy\", referenced from:\r\n[TRACE] [xcode-sim] _OBJC_METACLASS_$_ComAppTestmodExampleProxy in ComAppTestmodExampleProxy.o\r\n[TRACE] [xcode-sim] ld: symbol(s) not found for architecture i386\r\n[TRACE] [xcode-sim] clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n{code}\r\n{code}\r\n[ERROR] [xcode-sim] ** ARCHIVE FAILED **\r\n[ERROR] [xcode-sim] The following build commands failed:\r\n[ERROR] [xcode-sim] \tLd /Users/lchoudhary/Library/Developer/Xcode/DerivedData/testmod-awzexlutojiwrcgsjrvqzxeidfou/Build/Intermediates.noindex/ArchiveIntermediates/ComAppTestmod/IntermediateBuildFilesPath/testmod.build/Release-iphonesimulator/ComAppTestmod.build/Objects-normal/x86_64/Binary/ComAppTestmod normal x86_64\r\n[ERROR] [xcode-sim] \tLd /Users/lchoudhary/Library/Developer/Xcode/DerivedData/testmod-awzexlutojiwrcgsjrvqzxeidfou/Build/Intermediates.noindex/ArchiveIntermediates/ComAppTestmod/IntermediateBuildFilesPath/testmod.build/Release-iphonesimulator/ComAppTestmod.build/Objects-normal/i386/Binary/ComAppTestmod normal i386\r\n[ERROR] [xcode-sim] (2 failures)\r\n{code}\r\n\r\nh5.Expected result:\r\n1. Module should be built successfully.", "attachment": [], "flagged": false, "summary": "IOS: Building module created with sdk < 9.2.0.GA fails", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio Ver: 6.0.0.202005141803\r\nOS Ver: 10.15.5\r\nXcode Ver: Xcode 12.0.1\r\nAppc NPM: 5.0.0\r\nAppc CLI: 8.1.1\r\nDaemon Ver: 3.2.0\r\nTi CLI Ver: 5.2.5\r\nAlloy Ver: 1.15.2\r\nNode Ver: 12.13.1\r\nNPM Ver: 6.14.7\r\nJava Ver: 11.0.6\r\n", "closedSprints": [ { "id": 1207, "state": "closed", "name": "2020 Sprint 20", "startDate": "2020-09-28T15:30:47.481Z", "endDate": "2020-10-09T15:30:00.000Z", "completeDate": "2020-10-09T16:33:43.453Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457127", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~lchoudhary] I think if you're rebuilding without any changes that's expected, there is some required changes to be made to the module as documented in the release notes http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_SDK_9.2.0_GA_Release_Note-section-src-62558886_TitaniumSDK9.2.0GAReleaseNote-RebuildingiOSmodules", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-10-02T08:46:27.000+0000", "updated": "2020-10-02T08:46:27.000+0000" }, { "id": "457137", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~lchoudhary] I'd missed that you were making a swift module. FWIW, I only touched and rebuilt Objective-C modules, and the process I was following is what I'd wrote those steps from. It's probable that there's another step needed for Swift modules, I guess we just need to document it", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-10-02T16:52:14.000+0000", "updated": "2020-10-02T17:05:09.000+0000" }, { "id": "457140", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think this is an issue and need to be fixed. Every time sdk get changed the workaround will fail. \r\nI think while building module, we have to inject something like https://github.com/appcelerator-modules/titanium-apple-sign-in/blob/92a6db671397073f2dfdeab0b92e3f8db8271ee2/ios/titanium-apple-sign-in.xcodeproj/project.pbxproj#L24 if it is not there in module and log a message to commit this change as it is required.\r\ncc [~cwilliams]", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-02T18:08:38.000+0000", "updated": "2020-10-02T18:15:02.000+0000" }, { "id": "457142", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/12153", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-02T20:07:29.000+0000", "updated": "2020-10-02T20:07:29.000+0000" }, { "id": "457167", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nPR Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-05T22:57:18.000+0000", "updated": "2020-10-05T22:57:18.000+0000" }, { "id": "457171", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "With my environment, listed below, I can build scenarios 2, 3 and 4. However, building a swift module (created with 9.1.0.GA) with 9.2.1.v20201005155347 or 9.3.0.v20201005155027, I get the error: [ERROR] [xcode-sim] ** ARCHIVE FAILED **\r\n\r\nI am using Xcode 11.6 so will update to Xcode 12 to double check scenario #1.\r\n\r\nOS Ver: 10.15.3\r\nXcode Ver: Xcode 11.6\r\nAppc NPM: 5.0.0\r\nAppc CLI: 8.1.1\r\nNode Ver: 10.17.0", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-10-06T13:40:56.000+0000", "updated": "2020-10-06T13:40:56.000+0000" }, { "id": "457173", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ssaddique], Also make sure you edit the titanium.xcconfig in the {{ios}} folder of the module like here: {{https://github.com/appcelerator-modules/ti.facebook/blob/master/ios/titanium.xcconfig}}", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-06T15:50:53.000+0000", "updated": "2020-10-06T15:50:53.000+0000" }, { "id": "457174", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 9.2.1.v20201005155347.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-06T15:53:09.000+0000", "updated": "2020-10-06T15:53:09.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }