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

watchOS 8 crash #185

Closed
maximbilan opened this issue Jul 1, 2024 · 2 comments
Closed

watchOS 8 crash #185

maximbilan opened this issue Jul 1, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@maximbilan
Copy link

maximbilan commented Jul 1, 2024

Description

WKExtension.applicationDidEnterBackgroundNotification can't be found in WatchKit for watchOS 8. The app crashes on loading frameworks.

Crashlog

Date/Time:           2024-06-17 15:40:38.1712 -0600
Launch Time:         2024-06-17 15:40:38.0000 -0600
OS Version:          Watch OS 8.8.1 (19U512)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: DYLD 4 Symbol missing
Symbol not found: (_$sSo13WKApplicationC8WatchKitE30didEnterBackgroundNotificationSo18NSNotificationNameavgZ)
Expected in: '/usr/lib/swift/libswiftWatchKit.dylib'
(terminated at launch; ignore backtrace)

Triggered by Thread:  0


Thread 0 Crashed:
0   dyld                          	0x00000000057c93b0 __abort_with_payload + 8
1   dyld                          	0x00000000057cfef8 abort_with_payload_wrapper_internal + 100 (terminate_with_reason.c:102)
2   dyld                          	0x00000000057cff28 abort_with_payload + 12 (terminate_with_reason.c:124)
3   dyld                          	0x000000000578d8c8 dyld4::halt(char const*) + 592 (DyldProcessConfig.cpp:2102)
4   dyld                          	0x0000000005789ef8 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3132 (dyldMain.cpp:0)
5   dyld                          	0x00000000057891d0 start + 444 (dyldMain.cpp:864)

Steps to Reproduce

  1. Run the app with the integrated Amplitude-Swift SDK on watchOS 8 (hardware, not simulator)
  2. See the crash on launch

Environment

  • SDK Version: v1.6.2
  • OS Info: watchOS 8.8.1 (19U512), watchOS 8.7 (19U66), watchOS 8.7.1 (19U67)
@maximbilan maximbilan added the bug Something isn't working label Jul 1, 2024
@maximbilan maximbilan changed the title watchOS 8.8.1 crash watchOS 8 crash Jul 1, 2024
@crleona
Copy link
Collaborator

crleona commented Jul 1, 2024

Hi @maximbilan - Is it possible you are seeing these crashes with a previous version of the SDK? We fixed a crash (see #178) with the same stack trace in 1.6.1. Note that your provided stack trace and referenced symbol are different: WKExtension.applicationDidEnterBackgroundNotification vs WKApplication.didEnterBackgroundNotification.

@crleona crleona self-assigned this Jul 1, 2024
@maximbilan
Copy link
Author

Hi @maximbilan - Is it possible you are seeing these crashes with a previous version of the SDK? We fixed a crash (see #178) with the same stack trace in 1.6.1. Note that your provided stack trace and referenced symbol are different: WKExtension.applicationDidEnterBackgroundNotification vs WKApplication.didEnterBackgroundNotification.

Oh, right. Sorry for the false alert. Yeah, my crash log from the app with Amplitude SDK 1.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants