Open rdavisau opened 1 year ago
Totally out of my depth but I suppose that here we need to at least add arm64
to the simulator architectures. There might also need to be some extra shenanigans - I saw this commentary about not mixing platforms; I am not smart enough to work out whether we are already doing what needs to be done here, or if things have just been ok up till now due to no overlapping architectures.
The absence of arm64 in that simulator arch list does look wrong. I'll take a look at fixing this.
Progress on this has been made by @filipnavara in ericsink/cb#14
@filipnavara The new pre-release (2.1.5-pre20230516213315) should contain the iOS arm64 simulator changes. Does it work for you?
I'm not Filip, but the updated repro
dotnet new ios -o test-ios-sql
dotnet add test-ios-sql package SQLitePCLRaw.bundle_e_sqlite3 -v 2.1.5-pre20230516213315
dotnet build test-ios-sql -r iossimulator-arm64
works for me.
I can also now build arm64 simulator in another established project that's using bundle_e_sqlcipher
with the latest preview of that. Great stuff both!
I tested 2.1.5-pre20230516213315
on our MAUI project and it works just fine with iossimulator-x64 and iossimulator-arm64.
thankyou thankyou everyone. Please consider making 2.1.5 the minimum version for sqlite-net-cipher as well.
FYI, it appears the green bundle still has this issue in 2.1.7. I switched to SQLitePCLRaw.bundle_e_sqlite3 and was able to compile and deploy to an iOS sim on an M1.
In a Maui app.
When trying to use sqlite on an apple silicon, attempting to build for
iossimulator-arm64
fails withTo reproduce:
Full output:
dotnet build test-ios-sql -r iossimulator-x64
works ok.dotnet --version
7.0.102
(Verified that it affects sqlite3 (not just sqlcipher) and updated the issue.)