2
votes

Encountered a build issue on IOS too with "building for iOS Simulator, but linking in dylib built for iOS, file '.../platforms/ios/Pods/CouchbaseLite/iOS/CouchbaseLite.framework/CouchbaseLite' for architecture arm64"

I currently using nativescript 6.5.3 and cocoapod 1.10. Using M1 chipset.

1
Same boat: I'm on circleci - cocoapods 10.1, builds for simulator (same error) "building for iOS, but linking in dylib file ... built for iOS Simulator" - Anna Billstrom

1 Answers

1
votes
  1. Go to TARGET (e.g. Runner in my screen, not the PROJECT), then Build Settings
  2. Search for excluded like in screenshot.
  3. Edit the field in Architectures > Excluded Architectures, to add arm64. You can double click the top line to edit all 3 lines below.
  4. Rebuild/ run

Screenshot of IDE showing architectures section which contains exluded architectures subsection, which as Debug, Profile, Release subsections. Edit all of them to contain arm64

My details: Running on M1 mac mini, with a flutter iOS project.