aws-amplify/aws-sdk-ios

Error: No architectures in the binary. Lipo failed to detect any architectures in the bundle executable.

Opened this issue · 4 comments

Describe the bug

After updating AWSiOSSDKV2 from ver. 2.30.0 to 2.37.2 using SPM I have a problem with archiving my app on XcodeCloud. I tested my workflow with Xcode 15 and 16. Everytime I have the same error:

No architectures in the binary. Lipo failed to detect any architectures in the bundle executable.

To Reproduce
Steps to reproduce the behavior:

  1. Set AWSiOSSDKV2 to ver. 2.37.2 in Package Dependencies in the Xcode project
  2. Try to archive the app using XCodeCloud

Observed Behavior

Error on XcodeCloud:

No architectures in the binary. Lipo failed to detect any architectures in the bundle executable.

Expected Behavior
Archived build

Environment(please complete the following information):

  • SDK Version: 2.37.2
  • Dependency Manager: SPM
  • Swift Version : 5
  • Xcode Version: 15.2 & 16.1

Hi @marekhac, thank you for submitting the issue!
One of our members will take a look into this as soon as possible.
At the same time, it would be really helpful if you could provide us with full error logs

@edisooon Thanks for answer. Here is the fatal error part in logs associated with one of the AWS module:

Extracting arm64 from AWSCore
fatal error: lipo: input file (/Volumes/workspace/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/my_project_name/InstallationBuildProductsLocation/Applications/my_project_name.app/Frameworks/AWSCore.framework/AWSCore) must be a fat file when the -extract option is specified

@marekhac thanks for the error, someone will investigate this as soon as they're able to

@marekhac were you able to resolve the problem?

Apologies for the delay in getting to this issue.