watchOS App crashes only in Production/TestFlight

Hello,

Our watchOS App users on Apple Watch3 are experiencing crashes.

PROBLEM

  • only happens in production/testflight apps.
  • app crashes immediately on launch
  • if I build the app in Apple Watch3 device from a local machine, the app runs fine.
  • app runs fine on an Apple Watch3 simulator

What could possibly cause crashes only on Production/TestFlight while working fine on local builds?

Any advice about what I could do to narrow down the cause would be greatly appreciated.

THINGS I'VE TRIED

Tried disabling Dead Code Stripping option in the Build Settings without any success.

ENVIRONMENT

  • Apple Watch 3, most of them on watchOS 8.8.1(19U512)
  • our App is in SwiftUI
  • our App's minimum supported OS version is watchOS 8.0

Thank you.

Answered by Frameworks Engineer in 812491022

Howdy!

By any chance are you using Xcode 15.3 to build your project? If so, you will need to update to Xcode 15.4 or later to make sure that Swift back-deployment libraries include the armv7k architecture required for your code to run on Series 3 watches.

If you are using Xcode 15.4 or later already, please file a Feedback about the issue you're experiencing (ideally with a sample project) and post the number here so we can follow up.

Thanks!

Accepted Answer

Howdy!

By any chance are you using Xcode 15.3 to build your project? If so, you will need to update to Xcode 15.4 or later to make sure that Swift back-deployment libraries include the armv7k architecture required for your code to run on Series 3 watches.

If you are using Xcode 15.4 or later already, please file a Feedback about the issue you're experiencing (ideally with a sample project) and post the number here so we can follow up.

Thanks!

watchOS App crashes only in Production/TestFlight
 
 
Q