Pitoneux
Pitoneux

Reputation: 11

dyld[13932]: Symbol not found: _OBJC_CLASS_$_RLMApp and crashes

Using Xcode 15.1 and Realm 10.44.0 ( I tried 10.45.3 as well), my iOS app compiled but crash immediately at the start.

I get this message in the console:

dyld[13932]: Symbol not found: _OBJC_CLASS_$_RLMApp Referenced from: <997641DE-4DC0-3C9B-8703-EB619E0EA798> 
/private/var/containers/Bundle/Application/895CD321-AC24-400E-94D7-E7D113BA6F6A/LibreLink.app/Frameworks/RealmSwift.framework/RealmSwift   Expected in:     <5BA15EC4-BF30-38AB-9B9C-565F0C50612C> 
/private/var/containers/Bundle/Application/895CD321-AC24-400E-94D7-E7113BA6F6A/LibreLink.app/Frameworks/Realm.framework/Real
m

and the stack trace:

stack trace

My app was running fine with XCODE 14.1, Realm 10.34.1 until we switch to Xcode 15.1 (and 15.2 as well)

I installed Realm in a library I build using Carthage. I then used that library in my app. I also use Realm on the app side but using Realm pre-compiled from GitHub (I make sure I use the right Xcode version). I don’t use Carthage on the app side.

Here is the content (4level deep) of my "Realm" directory:

Realm/RealmSwift.xcframework/ios-arm64_x86_64-simulator/RealmSwift.framework/_CodeSignature
Realm/RealmSwift.xcframework/ios-arm64_x86_64-simulator/RealmSwift.framework/Headers
Realm/RealmSwift.xcframework/ios-arm64_x86_64-simulator/RealmSwift.framework/Modules
Realm/RealmSwift.xcframework/ios-arm64_x86_64-simulator/RealmSwift.framework
Realm/RealmSwift.xcframework/ios-arm64_x86_64-simulator
Realm/RealmSwift.xcframework/ios-arm64/RealmSwift.framework/Headers
Realm/RealmSwift.xcframework/ios-arm64/RealmSwift.framework/Modules
Realm/RealmSwift.xcframework/ios-arm64/RealmSwift.framework
Realm/RealmSwift.xcframework/ios-arm64
Realm/RealmSwift.xcframework
Realm/Realm.xcframework/ios-arm64_x86_64-simulator/Realm.framework/_CodeSignature
Realm/Realm.xcframework/ios-arm64_x86_64-simulator/Realm.framework/PrivateHeaders
Realm/Realm.xcframework/ios-arm64_x86_64-simulator/Realm.framework/Headers
Realm/Realm.xcframework/ios-arm64_x86_64-simulator/Realm.framework/Modules
Realm/Realm.xcframework/ios-arm64_x86_64-simulator/Realm.framework
Realm/Realm.xcframework/ios-arm64_x86_64-simulator
Realm/Realm.xcframework/ios-arm64/Realm.framework/PrivateHeaders
Realm/Realm.xcframework/ios-arm64/Realm.framework/Headers
Realm/Realm.xcframework/ios-arm64/Realm.framework/Modules
Realm/Realm.xcframework/ios-arm64/Realm.framework
Realm/Realm.xcframework/ios-arm64
Realm/Realm.xcframework

Realm and RealmSwift are also included in a Copy to Framework build phase.

Embedded frameworks

Also in the general Panel (Embedded content):

enter image description here

Any help appreciated.

Upvotes: 1

Views: 258

Answers (1)

Jay
Jay

Reputation: 35648

My app was running fine with XCODE 14.1, Realm 10.34.1

Ah, I am pretty sure that Realm version is out of date and needs to be updated. With XCode 15 and above, I believe Realm 10.40.0 is needed along with iOS 12 or above. You may need a Carthage update as well.

See XCode 15 requirements

Upvotes: 0

Related Questions