DEV Community

Daniel R
Daniel R Subscriber

Posted on

❌ expo-apple-authentication Crash on iOS Build — Fixed!

Ran into a Swift compile error when trying to build a project scaffolded with bolt.new using expo-apple-authentication:

(node_modules/expo-apple-authentication/ios/AppleAuthenticationExceptions.swift:53:3)
switch must be exhaustive
Enter fullscreen mode Exit fullscreen mode

The Problem:

By default, bolt.new used version 6.3.0 of expo-apple-authentication, which is outdated and not compatible with newer Swift requirements (like exhaustive switch statements on ASAuthorizationError).


✅ The Fix:

  1. Upgrade the package version in package.json:
"expo-apple-authentication": "~7.2.4"
Enter fullscreen mode Exit fullscreen mode
  1. Set the iOS build image in eas.json:
"ios": {
  "image": "latest"
}
Enter fullscreen mode Exit fullscreen mode

Once I made those changes, the build worked perfectly.
Hopefully this saves someone else the frustration. If you're seeing strange Swift compile issues with Apple Auth in Expo, check your versions!

Top comments (0)