-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Realm Database Xamarin.Forms iOS Crash with 4.0 #1871
Comments
I'm assuming it works fine for you in simulators, but crashes instantly on devices? That's what I'm seeing anyway. |
Thumbs up on this, having the exact same issue. This utterly blocks us from using Realm, and we can't downgrade to 3.4.0 as then we will loose implicit transactions in UWP. |
@Dids Yes I'm seeing the same behavior. Works on the simulator but crashes on devices. Tested a variety of iPhones and iPods. |
@nirinchev Any chance of an ETA on a fix for this? Or should we downgrade back to 3.x for now? |
We'll look into that first thing next week. Sorry for the slow reply rate but both Yavor and I were attending Mongo World in New York. I'm hoping it'll turn out to be a misconfiguration of the cmake script, but will know more tomorrow. In any case, I expect to have something by mid next week. |
Hello I have the same issue - app crashes on iOS but runs on simulator (I only added realms 4.0.0 and Realm tag to weaver, not actual use of realm) But I noticed in Build Output the following: Target FodyTarget: |
@nirinchev Any news? Sorry, just getting a lot of heat from my client about this, as we've been eagerly waiting for the new subscription functionality in 4.0.0. |
Just throwing this out there, but shouldn't it say I even tried replacing |
I believe we have a fix and can share a CI build as soon as it's ready. I expect we'll do an official release by the end of the week. |
Another issue is when submitting to the App Store. It complains there is no info.plist with realm. Actual message to follow. |
ERROR ITMS-90057: "The bundle 'Payload/oneiota.iOS.app/Frameworks/realm-wrappers.framework' is missing plist key. The Info.plist file is missing the required key: CFBundleShortVersionString. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring" ERROR ITMS-90056: "This bundle Payload/oneiota.iOS.app/Frameworks/realm-wrappers.framework is invalid. The Info.plist file is missing the required key: CFBundleVersion. Please find more information about CFBundleVersion at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion" |
@ryanherman this has been reported in another issue: #1870 |
@nirinchev thank you! my issue #1874 with ios crash on early startup fixed! Great Job! |
waiting for official nuget package :-) |
Hey - looks like you forgot to add a T:* label - could you please add one? |
I just had the same issue with a brand new Xamarin.Forms project. Then I found that I did not install the Realm package to the iOS project. After I did, the error changed a bit from Magically, upgrading the shared Xamarin.Forms project and the native projects to Xamarin.Forms 4.2.0 (was 4.1.0) and Xamarin.Essentials 1.3.0 (was 1.2.0) solved the issue. Are there any hidden dependencies I should have known about? |
There are no dependencies - my best guess is that VS had cached something and upgrading XF forced it to do a proper rebuild which took care of the Realm issue as well. |
I thought of that as well but cleaning did not help at all. I missed one thing I usually do to eliminate caching bugs: Doing a |
Goals
Upgrade to Realm 4.0.0 in a Xamarin.Forms app on iOS. Also occurs on a brand new Xamarin.Forms app.
Expected Results
Xamarin.Forms app works on iOS and Android.
Actual Results
Xamarin.Forms app crashes on iOS immediately after launch. This starts as soon as Realm package is added, no RealmObjects or Realms in use. Android and UWP work without issue. The crash reports references a realm-wrappers framework, see below.
Steps to Reproduce
Version of Realm and Tooling
Realm 4.0.0
Xamarin.Forms 4.0.0.425677 & 4.0.0.497661
iOS 12.3.1
The text was updated successfully, but these errors were encountered: