Back

WatchOS 8.5 crashes due to Symbol not found error.

  • 0
  • Apple
Quasar
8 Jun, 2024, 23:57

I just updated my watchOS application, and included the appwrite framework (via swiftpm), and was starting to get reports of the watch crashing for various users. It appears as though version 8.5 crashes with this error. Are you able to help fix it? I'd be happy to do the work if you need.

it does not specifically call out the framework, but i removing it fixes the issue.

TypeScript
dyld[71680]: Symbol not found: _$sSo13WKApplicationC8WatchKitE31willEnterForegroundNotificationSo18NSNotificationNameavgZ
  Referenced from: /Users/Library/Developer/CoreSimulator/Devices/1CB3B85A-4A42-4786-91A5-4CA4BB790DC3/data/Containers/Bundle/Application/34726FC6-1120-44A0-8D0A-6564426E3A26/Jump Watch App.app/Jump Watch App
  Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS 8.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswiftWatchKit.dylib

perhpas you're trying to call willEnterForegroundNotification via a selector when this is not availble on watchOS? SHould be applicationWillEnterForeground from the WKApplicationDelegate Thank you, Mark

TL;DR
Developers experiencing crashes after updating to WatchOS 8.5, likely due to a Symbol not found error. The issue may be related to a mismatch in calling `willEnterForegroundNotification`. Try using `applicationWillEnterForeground` from `WKApplicationDelegate` instead.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more