1

我已将 mac 更新到 11.6,将 xcode 更新到 13.0。Realm 无法编译,所以我用 carthage 将它更新到 v10.15.1。现在我在应用程序启动后收到此运行时错误:

  Library not loaded: @rpath/Realm.framework/Realm
  Referenced from: /Users/username/Library/Developer/Xcode/DerivedData/appname/Build/Products/Debug-iphonesimulator/RealmSwift.framework/RealmSwift
  Reason: tried: '/Users/username/Library/Developer/Xcode/DerivedData/appname/Build/Products/Debug-iphonesimulator/Realm.framework/Realm' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have 'x86_64,i386', need 'x86_64')), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/Realm.framework/Realm' (no such file), '/usr/lib/swift/Realm.framework/Realm' (no such file), '/Users/username/Library/Developer/CoreSimulator/Devices/33E61712-D8A9-4D7E-A260-5C096BE08A82/data/Containers/Bundle/Application/AC700919-F431-446F-8BEF-FF8D8E5F5BF9/appname.a

我想这里的关键部分是file does not start with MH_MAGIC[_64],但我找不到有关该错误的任何有用信息。

我尝试嵌入库并关闭嵌入,不影响任何东西。

4

0 回答 0