Realm-cocoa: “RealmSwift.framework” cannot be opened because the developer cannot be verified

Created on 15 Dec 2020  Â·  2Comments  Â·  Source: realm/realm-cocoa

I tried to use Relm and RealmSwift as .xcframework for macCatalyst.
App builds just fine, but on the launch, I get “RealmSwift.framework” cannot be opened because the developer cannot be verified (for Realm too). embedded and sign option is set at Xcode project settings.

Version of Realm and Tooling

Realm framework version: 10.4.0

Xcode version: 12.2

iOS/OSX version: macOS 10.5.6

O-Community Pipeline-Waiting-for-User

Most helpful comment

This appears to be an Xcode bug, as running the app not via Xcode works.

If you run
xattr -d -r com.apple.quarantine <my-directory>/Realm.xcframework

and
xattr -d -r com.apple.quarantine <my-directory>/RealmSwift.xcframework

on your downloaded and linked xcframeworks, you will be able to run the app without receiving any errors or warnings.

Could you test this out and close the issue if you find this solution sufficient?

All 2 comments

This appears to be an Xcode bug, as running the app not via Xcode works.

If you run
xattr -d -r com.apple.quarantine <my-directory>/Realm.xcframework

and
xattr -d -r com.apple.quarantine <my-directory>/RealmSwift.xcframework

on your downloaded and linked xcframeworks, you will be able to run the app without receiving any errors or warnings.

Could you test this out and close the issue if you find this solution sufficient?

@jsflax thanks! That did the trick.

Was this page helpful?
0 / 5 - 0 ratings