Skip to content
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

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

Open
shijian123 opened this issue Nov 1, 2024 · 18 comments
Open

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

shijian123 opened this issue Nov 1, 2024 · 18 comments

Comments

@shijian123
Copy link

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: ...

Copy link

sync-by-unito bot commented Nov 1, 2024

➤ PM Bot commented:

Jira ticket: RCOCOA-2452

@tentenlee100
Copy link

same issue on ios 14.8.1, but ios 15.7 is fine

@GordonLJY
Copy link

GordonLJY commented Nov 4, 2024

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

@lucasbunq
Copy link

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

@hrjun
Copy link

hrjun commented Nov 6, 2024

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

@lkuraer
Copy link

lkuraer commented Nov 6, 2024

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

@kingnight
Copy link

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

@AndreasVerhoeven
Copy link

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
Copy link

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
Copy link

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

@ZhangPan0825
Copy link

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

@Jride
Copy link

Jride commented Nov 28, 2024

This is currently blocking us from releasing our app that is needing to support iOS 14

@dsdsk
Copy link

dsdsk commented Dec 6, 2024

I set the “minimum developments” to 13 or more and it stopped crashing.

@Touchgram
Copy link

It was reported for iOS13 in the duplicate 8723

I set the “minimum developments” to 13 or more and it stopped crashing.

that didn't fix things for me. I get the same crash in RLMSetMainActor(MainActor.shared)

@akinoavx13
Copy link

You can archive using Xcode Cloud with Xcode 15, it works.

@Touchgram
Copy link

I am building now with the released Xcode 16.2
Crash reproduced on iOS 14.7.1 with Realm versions;

  • 10.49.2
  • 10.48.2 (has privacy manifest)

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

must be built with a minimum of Xcode 15 and the iOS 17 SDK. Starting April 2025, ... must be built with the iOS 18 SDK

So we have a second workaround if necessary, although that means missing out on the new icon handling of Xcode 16

@Touchgram
Copy link

Touchgram commented Dec 13, 2024

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 that Xcode due "could not locate device support files".

@akinoavx13
Copy link

Has the reported bug been fixed in version 10.54.2 released last week?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests