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
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:
- Upgrade the package version in package.json:
"expo-apple-authentication": "~7.2.4"
- Set the iOS build image in
eas.json
:
"ios": {
"image": "latest"
}
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)