realm / realm-swift

Realm is a mobile database: a replacement for Core Data & SQLite
https://realm.io
Apache License 2.0
16.34k stars 2.15k forks source link

[Xcode 16.1] iOS 14.6 crashing with Realm 10.45.1 #8708

Open shijian123 opened 3 weeks ago

shijian123 commented 3 weeks ago

How frequently does the bug occur?

Always

Description

截屏2024-11-01 16 01 30

Try adding the -Wl,-ld_classic options to the OTHER_LDFLAGS build in the project settings. Still doesn't work

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

10.45.1

What Atlas Services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

Xcode16.1 IOS14.6

Build environment

Xcode version: ... Dependency manager and version: ...

sync-by-unito[bot] commented 3 weeks ago

➤ PM Bot commented:

Jira ticket: RCOCOA-2452

tentenlee100 commented 3 weeks ago

same issue on ios 14.8.1, but ios 15.7 is fine

GordonLJY commented 2 weeks ago

Happens on my side too. Works well on iOS 15 or later, but crashes when running on iOS 14.x.

lucasbunq commented 2 weeks ago

I'm running into the same issue. Xcode 16.1 + Realm 10.54.1 + iOS 14.X.

hrjun commented 2 weeks ago

Same issue on Xcode 16.1 + Realm 10.54.1 + iOS 14.8.1, but works fine with Xcode 16.0.

lkuraer commented 2 weeks ago

Same issue on Xcode 16.1 + Realm 10.53.0 + iOS 14x, but works fine with other ios versions

kingnight commented 2 weeks ago

Same issue on Xcode 16.1 + Realm 10.54.1 + iOS 14.4, please fix

AndreasVerhoeven commented 2 weeks ago

The issue is caused by Xcode 16.1 trying to link in the Swift Concurrency back deployment library in iOS < 15. It does this by incorrectly linking to /usr/lib/swift_Concurrency.lib while it should link to @rpath/swift_Concurrency.lib.

I haven't seen this in other SPM packages, so it's likely a combination of this SPM package's configuration + a bug in Xcode 16.1

kingnight commented 2 weeks ago

The issue is caused by Xcode 16.1 trying to link in the Swift Concurrency back deployment library in iOS < 15. It does this by incorrectly linking to /usr/lib/swift_Concurrency.lib while it should link to @rpath/swift_Concurrency.lib.

I haven't seen this in other SPM packages, so it's likely a combination of this SPM package's configuration + a bug in Xcode 16.1

any workaround can take ?

akinoavx13 commented 4 days ago

I wanted to check if there are any updates or workarounds for this issue?

ZhangPan0825 commented 3 days ago

The same issue exists on Xcode 16.1+Realm 10.52.3+iOS 14x