firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.46k stars 1.43k forks source link

Crashlytics does not symbolicate system frameworks on iOS17 #12667

Closed swiftty closed 2 months ago

swiftty commented 3 months ago

Description

I noticed Crashlytics's stack trace does not symbolicate system frameworks caused on iOS17. My application module is symbolicated as I expected.

Can anyone provide me guidance on how I can resolve this situation and I have no insight on what's causing it.

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x12d12c (シンボルが不足しています UUID 7d1f50b3ed7d3987bcedad6779b49c86)
1  libobjc.A.dylib                0x2bdb4 (シンボルが不足しています UUID 3dd3f95135773a0a8c7f174cda84423d)
2  CoreFoundation                 0x12d048 (シンボルが不足しています UUID 7d1f50b3ed7d3987bcedad6779b49c86)
3  UIKitCore                      0x803e48 (シンボルが不足しています UUID 5354928b4688337fb9fc835aa5aa3543)
4  App                            0x8a54 closure #1 in closure #2 in closure #1 in RootPage.body.getter + 27 (RootPage.swift:27)
5  SwiftUI                        0xd7cc2c (シンボルが不足しています UUID 5a1ca00e3642328690463a10db487f02)
6  SwiftUI                        0xd7cc48 (シンボルが不足しています UUID 5a1ca00e3642328690463a10db487f02)
7  SwiftUI                        0xd7cc2c (シンボルが不足しています UUID 5a1ca00e3642328690463a10db487f02)
8  SwiftUI                        0x1460ba4 (シンボルが不足しています UUID 5a1ca00e3642328690463a10db487f02)
9  SwiftUI                        0x1460ea4 (シンボルが不足しています UUID 5a1ca00e3642328690463a10db487f02)
10 SwiftUI                        0x56ac18 (シンボルが不足しています UUID 5a1ca00e3642328690463a10db487f02)
11 SwiftUI                        0x56ab68 (シンボルが不足しています UUID 5a1ca00e3642328690463a10db487f02)
12 SwiftUI                        0x56ac88 (シンボルが不足しています UUID 5a1ca00e3642328690463a10db487f02)
13 CoreFoundation                 0x8ce34 (シンボルが不足しています UUID 7d1f50b3ed7d3987bcedad6779b49c86)
14 CoreFoundation                 0x87838 (シンボルが不足しています UUID 7d1f50b3ed7d3987bcedad6779b49c86)
15 CoreFoundation                 0x87cf0 (シンボルが不足しています UUID 7d1f50b3ed7d3987bcedad6779b49c86)
16 CoreFoundation                 0x87514 (シンボルが不足しています UUID 7d1f50b3ed7d3987bcedad6779b49c86)
17 GraphicsServices               0x3ae4 (シンボルが不足しています UUID 4a4b088d4b30333387b4a40533ac5580)
18 UIKitCore                      0xbef040 (シンボルが不足しています UUID 5354928b4688337fb9fc835aa5aa3543)
19 UIKitCore                      0xbf2cc8 (シンボルが不足しています UUID 5354928b4688337fb9fc835aa5aa3543)
20 SwiftUI                        0xd81b68 (シンボルが不足しています UUID 5a1ca00e3642328690463a10db487f02)
21 SwiftUI                        0xd81a10 (シンボルが不足しています UUID 5a1ca00e3642328690463a10db487f02)
22 SwiftUI                        0xa40068 (シンボルが不足しています UUID 5a1ca00e3642328690463a10db487f02)
23 App                            0x380c static AppProvider.main() + 24 (main.swift:24)
24 App                            0x36a8 main + 27 (main.swift:27)
25 ???                            0x105881544 (シンボルが不足しています)
26 ???                            0x10597a0e0 (シンボルが不足しています)
27 ???                            0x725a800000000000 (シンボルが不足しています)

(シンボルが不足しています means Missing symbol.)

same crash on iOS16

``` Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x122324 __exceptionPreprocess 1 libobjc.A.dylib 0x25274 objc_exception_throw 2 CoreFoundation 0x122240 -[NSException initWithCoder:] 3 UIKitCore 0x6ea3dc -[UINib instantiateWithOwner:options:] 4 App 0x8a54 closure #1 in closure #2 in closure #1 in RootPage.body.getter + 27 (RootPage.swift:27) 5 SwiftUI 0xa1ce3c OUTLINED_FUNCTION_16 6 SwiftUI 0xa1ce58 OUTLINED_FUNCTION_16 7 SwiftUI 0xa1ce3c OUTLINED_FUNCTION_16 8 SwiftUI 0x7918f8 OUTLINED_FUNCTION_11 9 SwiftUI 0x790f40 OUTLINED_FUNCTION_11 10 SwiftUI 0x4ac12c OUTLINED_FUNCTION_1 11 SwiftUI 0x4ac090 OUTLINED_FUNCTION_1 12 SwiftUI 0x4ac188 OUTLINED_FUNCTION_1 13 CoreFoundation 0x84c10 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 14 CoreFoundation 0x7f57c __CFRunLoopDoObservers 15 CoreFoundation 0x7fa20 __CFRunLoopRun 16 CoreFoundation 0x7f254 CFRunLoopRunSpecific 17 GraphicsServices 0x3c9c GSEventRunModal 18 UIKitCore 0xa7eff0 -[UIApplication _run] 19 UIKitCore 0xa82f3c UIApplicationMain 20 SwiftUI 0xf5734c OUTLINED_FUNCTION_54 21 SwiftUI 0xf571ec OUTLINED_FUNCTION_54 22 SwiftUI 0x74f474 OUTLINED_FUNCTION_16 23 App 0x380c static AppProvider.main() + 24 (main.swift:24) 24 App 0x36a8 main + 27 (main.swift:27) 25 ??? 0x103f6d514 (シンボルが不足しています) 26 ??? 0x103a820e0 (シンボルが不足しています) 27 ??? 0x0 (シンボルが不足しています) ```

I'm using Crashlytics/run in Build Phase script.

スクリーンショット 2024-03-30 9 48 24

Reproducing the issue

  1. Setup Crashlytics as documented.
  2. Add test crash code.
    • e.g.)
      UINib(nibName: "non existing nib name", bundle: .main).instantiate(withOwner: nil)
  3. Run on iOS17 and 16.

Firebase SDK Version

10.23.1

Xcode Version

15.3

Installation Method

Swift Package Manager

Firebase Product(s)

Crashlytics

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
```json { "pins" : [ { "identity" : "abseil-cpp-binary", "kind" : "remoteSourceControl", "location" : "https://github.com/google/abseil-cpp-binary.git", "state" : { "revision" : "7ce7be095bc3ed3c98b009532fe2d7698c132614", "version" : "1.2024011601.0" } }, { "identity" : "app-check", "kind" : "remoteSourceControl", "location" : "https://github.com/google/app-check.git", "state" : { "revision" : "3e464dad87dad2d29bb29a97836789bf0f8f67d2", "version" : "10.18.1" } }, { "identity" : "firebase-ios-sdk", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/firebase-ios-sdk", "state" : { "revision" : "888f0b6026e2441a69e3ee2ad5293c7a92031e62", "version" : "10.23.1" } }, { "identity" : "googleappmeasurement", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleAppMeasurement.git", "state" : { "revision" : "c7a5917ebe48d69f421aadf154ef3969c8b7f12d", "version" : "10.23.1" } }, { "identity" : "googledatatransport", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleDataTransport.git", "state" : { "revision" : "a637d318ae7ae246b02d7305121275bc75ed5565", "version" : "9.4.0" } }, { "identity" : "googleutilities", "kind" : "remoteSourceControl", "location" : "https://github.com/google/GoogleUtilities.git", "state" : { "revision" : "26c898aed8bed13b8a63057ee26500abbbcb8d55", "version" : "7.13.1" } }, { "identity" : "grpc-binary", "kind" : "remoteSourceControl", "location" : "https://github.com/google/grpc-binary.git", "state" : { "revision" : "67043f6389d0e28b38fa02d1c6952afeb04d807f", "version" : "1.62.1" } }, { "identity" : "gtm-session-fetcher", "kind" : "remoteSourceControl", "location" : "https://github.com/google/gtm-session-fetcher.git", "state" : { "revision" : "76135c9f4e1ac85459d5fec61b6f76ac47ab3a4c", "version" : "3.3.1" } }, { "identity" : "interop-ios-for-google-sdks", "kind" : "remoteSourceControl", "location" : "https://github.com/google/interop-ios-for-google-sdks.git", "state" : { "revision" : "2d12673670417654f08f5f90fdd62926dc3a2648", "version" : "100.0.0" } }, { "identity" : "leveldb", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/leveldb.git", "state" : { "revision" : "43aaef65e0c665daadf848761d560e446d350d3d", "version" : "1.22.4" } }, { "identity" : "nanopb", "kind" : "remoteSourceControl", "location" : "https://github.com/firebase/nanopb.git", "state" : { "revision" : "b7e1104502eca3a213b46303391ca4d3bc8ddec1", "version" : "2.30910.0" } }, { "identity" : "nuke", "kind" : "remoteSourceControl", "location" : "https://github.com/kean/Nuke.git", "state" : { "revision" : "4625c73ea00a9fb4b4f3e28d95d0021a44af7e59", "version" : "12.5.0" } }, { "identity" : "promises", "kind" : "remoteSourceControl", "location" : "https://github.com/google/promises.git", "state" : { "revision" : "540318ecedd63d883069ae7f1ed811a2df00b6ac", "version" : "2.4.0" } }, { "identity" : "swift-algorithms", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-algorithms.git", "state" : { "revision" : "f6919dfc309e7f1b56224378b11e28bab5bccc42", "version" : "1.2.0" } }, { "identity" : "swift-numerics", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-numerics", "state" : { "revision" : "0a5bc04095a675662cf24757cc0640aa2204253b", "version" : "1.0.2" } }, { "identity" : "swift-protobuf", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-protobuf.git", "state" : { "revision" : "65e8f29b2d63c4e38e736b25c27b83e012159be8", "version" : "1.25.2" } }, { "identity" : "swift-syntax", "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-syntax.git", "state" : { "revision" : "fa8f95c2d536d6620cc2f504ebe8a6167c9fc2dd", "version" : "510.0.1" } }, { "identity" : "swiftlintbinary", "kind" : "remoteSourceControl", "location" : "https://github.com/swiftty/SwiftLintBinary.git", "state" : { "revision" : "02ad3a868f3e8118a739ec65678ac10a4874dad9", "version" : "0.54.0" } }, { "identity" : "xcodegenbinary", "kind" : "remoteSourceControl", "location" : "https://github.com/swiftty/XcodeGenBinary.git", "state" : { "revision" : "e585efb65c994e082316eba26852eb5ffdeb5e73", "version" : "2.39.1" } } ], "version" : 2 } ```

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
```yml Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 3 months ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

rizafran commented 3 months ago

Thanks for reporting, @swiftty. May I know if you have any missing dSYMs in your Crashlytics dashboard? You may also check this troubleshooting page for more info.

google-oss-bot commented 3 months ago

Hey @swiftty. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

wojciech-kulik commented 3 months ago

I'm seeing the same problem for macOS app. Only my app is symbolicated, system frameworks are not:

image

I don't have any dSYMs missing.

google-oss-bot commented 2 months ago

Hey @swiftty. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 2 months ago

Since there haven't been any recent updates here, I am going to close this issue.

@swiftty if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.