Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

Tags:

swift

realm

Getting this error.

Realm/core/librealmcore-ios.a(array_binary.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

Swift iOS 14 xcode 12.0.1

What I have tried :

  • Updating to the latest realm
  • Excluding the arm64 architecture

Nothing seems to work Seems realm are having issues too : https://realm.io/docs/swift/latest/#cocoapods

"Arm64 simulator architecture may not be supported for several combinations of Realm 5.x and Xcode 12. Please attempt the following workarounds if you experience architecture-related build errors with the latest version of Realm."

like image 883
Kingsley Mitchell Avatar asked Oct 01 '20 05:10

Kingsley Mitchell


1 Answers

Use

pod 'RealmSwift', '~> 10.5.0'

They already added support for xcframework.

like image 195
Hugo Alonso Avatar answered Nov 03 '22 04:11

Hugo Alonso