-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Database connection via Entity Framework fails on iOS device in Release confiuration #22559
Comments
/cc @JeremyLikness |
While on an iOS device & in release mode the Xamarin.iOS interpreter needs to be on for EF to work properly. (More info on the Xam.iOS interpreter). Updated the sample and PR'd it: dotnet/EntityFramework.Docs#2666 |
I did what you proposed, @codemillmatt. However, it didn't work. The application still crashes |
@bpitppg - checking in to let you know I did not forget about you. I'm running down a few loose ends here as to why you're still experiencing crashes. I should have an answer for you soon. |
Documentation related to [dotnet/efcore #22559](dotnet/efcore#22559). May address [dotnet/efore #10963](dotnet/efcore#10963).
@bpitppg - the sample's been updated in this PR You can ignore anything that deals with the interpreter. Instead set the iOS linker to Let me know if that works for you or not. |
@codemillmatt Thanks, this has fixed our issue. (I'm working with @bpitppg) |
Fixed per @lion92pl |
@JeremyLikness I was just writing when you have closed this issue.
I have tried changing back to Link framework SDK's only and adding --linkskip System.Core to Additional mtouch arguments. And that is what fixed this for us. App is working fine and Apple has accepted this build. |
The latest merge has the guidance you mentioned. |
I know, that from where I took this. But it still mentions setting linker behavior to Don't link as a second option. Might be worth adding comment, that this might cause Apple to reject build. |
Sample iOS application i downloaded from this repository constantly crashes on my iPhones (iOS versions from 13.4-13.7) in Release configuration. Everything is good, when I run it in Debug. There is a problem with connecting to a SQLite database using Entity Framework.
To Reproduce
Additional context
Microsoft.Data.Sqlite version: 3.1.5 (the issue also appear after upgrading to 3.1.8)
Target framework: .NET Standard 2.0
Operating system: iOS 13.4-13.7
The text was updated successfully, but these errors were encountered: