-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Crash on iOS 13 device when building with Xcode 16.1 #8723
Comments
see #8708 (comment)
This is suggesting it's like the problem a couple of years ago https://developer.apple.com/forums/thread/696197 Back then it was being triggered by Apple's serverside processing at the app store, I wrote about it here Workaround from the Xcode 13.2 notes: Add -Wl,-weak-lswift_Concurrency -Wl,-rpath,/usr/lib/swift to Other Linker Flags in the app’s build settings, for that problem, does not fix the crash. I have verified it with my iPhone7 running 14.7.1 and building with Xcode 16.2 (16C5031c) (It was a faint hope). |
I am building now with the released Xcode 16.2
Reverting to Xcode 16.0 and testing with Realm 10.48.2 does not crash - it was some change in Xcode 16.1 causing the problem. Note Apple submission rules say, currently
So we have a second workaround if necessary, although that means missing out on the new icon handling of Xcode 16 |
Version 10.38.3 is the highest release that builds and runs with Xcode 16.2 on iOS14. v10.39.1 introduced a compilation failure on older OS that wasn't fixed until 10.40.1. The problem causing Xcode 16.1/2 to cause crashes was introduced somewhere between 10.38.3 and 10.40.1 I am unable to test my iOS 12 and 13 devices with Xcode16 due "could not locate device support files". |
Thanks a lot for your information!
As updating realm version is not a must-have for us, maybe we will just keep using old version with the latest Xcode 16.2.
|
How frequently does the bug occur?
Always
Description
When I use Xcode 16.1 with Realm version 10.54.1, to build to a real device on iOS 13.6.1,
app crashed on initializing
Realm.Configration
.I can reproduce it on a clean new project as the steps provided below, so the crash reason not belongs to my project code.
And on iOS 17, iOS 18 devices, it won't crash.
I tried downgrade to v10.49.2 and it doesn't crashed. It seams like starting crash after v10.49.3
And I have tried the same reproduce project with same Realm version in Xcode 16.0, it doesn't crash.
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
viewDidLoad
function in the ViewController template file, addlet realm = try? Realm(configuration: .defaultConfiguration)
Version
10.54.1
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
iOS 13.6.1
Build environment
Xcode version: ...
Dependency manager and version: ...
The text was updated successfully, but these errors were encountered: