-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 for Firestore, iOS Simulator 14.3, Xcode 15 #11829
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @thomasdao, it looks like your issue is duplicate of #11509. With this, please see the discussion there. |
Hi @thomasdao, when you encountered this crash, were you using an Intel or ARM mac? I'm asking because I'm not convinced that this is a duplicate of #11509 since the stack trace, although it includes |
@thomasdao Also, please tell me if this crash occurs in "Debug" builds, "Release" builds, or both. |
Hi @dconeybe, the crash occurs on ARM Mac M1, on Debug build. |
@thomasdao Thank you for the information. Are you able to downgrade to Firestore 10.9.0? That version uses an older version of grpc any may not suffer from this crash. The newer version of grpc is known to cause a crash in ios 12, and could, theoretically, cause this crash as well. |
@thomasdao According to Apple's release notes for Xcode 15, this might be a known issue. Could you try the workaround documented there? That is, "Bump the minimum deployment target to iOS 15, macOS 12, watchOS 8 or tvOS 15, or add -Wl,-ld_classic to the OTHER_LDFLAGS build setting." https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Linking |
Hi @dconeybe, I tried downgrading Firebase to 10.9.0 and the crash still occurs. If this is a known issue for Xcode (which is very likely), I'll wait for the next Xcode version and try again. For now, I still use Xcode 14.2 and it works fine with the latest Firebase 10.15.0. |
Hi @thomasdao. Thanks for letting us know. Based on this information, your crash is definitely not a duplicate of #11509. Since you have a workaround, I'm going to close this issue as "resolved". In the meantime, we'll see if we can reproduce on our end. Feel free to leave more comments, re-open the issue, or open a new issue if you run into other problems. |
I've (finally) been able to reproduce this crash locally. It's also reproducible on an Intel MacBook Pro (not just on ARM). I used Xcode 15 with iOS Simulator of iPhone 6S with iOS 14.3. I've logged b/301426582 (visible to Googlers) to track the investigation. I've re-opened this issue and will close it once a fix is merged. |
FYI: Specifying |
Also, setting the minimum deployment target to iOS 15, macOS 12, watchOS 8, and tvOS 15 will fix the crash, at the (obvious) cost of precluding running your app on those older OS versions. |
@thomasdao To me it seems very unlikely that a future Xcode version will "fix" this. Based on the release notes, this breakage is "accepted" and the workaround of specifying |
Thanks for the investigation :). My app currently supports until iOS 13, dropping to iOS 15 maybe a bit too drastic. I guess I can live with the workaround of specifying |
From the Xcode 15.1 beta release note:
|
the -ld_classic seemed to work for making an iPad iOS 12.5 not crash when directly connected to Xcode. However, when published to the App Store with this linker flag set, we still encountered the same issue where the app would immediately close out. We had to revert to Xcode 14 to resolve this issue. Xcode 15.1 still seems to have this issue as we were also testing by creating Ad Hoc release builds distributed to ourselves. |
Does it make a difference to use Firebase 10.16 (and grpc 1.49.1)? |
I tried both 10.16 and 10.9 |
@ivkim This could be a distinct crash from the one reported originally in this issue. Please open a brand new issue and fill out the issue template so that we can treat it as a distinct issue and investigate it accordingly. |
Description
On latest Xcode 15, iOS simulator 14.3, I found the app crashes almost immediately when app starts.
When run on iOS simulator 17.0, the app does not crash.
When run on Xcode 14.2, the app does not crash.
Reproducing the issue
Compile app on Xcode 15 and run on simulator 14.3
Firebase SDK Version
10.15.0
Xcode Version
15
Installation Method
CocoaPods
Firebase Product(s)
Firestore
Targeted Platforms
iOS
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetReplace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetThe text was updated successfully, but these errors were encountered: