I'm working on a project that uses an Expo development build and I keep getting an error message from Xcode:
Cannot find 'ExpoAppDelegate' in scope.
Specifically this error happens after I:
npx expo prebuild
npx expo start --dev-client --tunnel
According to Xcode, the error is thrown in ExpoFileSystem by this line:
private lazy var sessionTaskDispatcher = EXSessionTaskDispatcher(sessionHandler:
ExpoAppDelegate.getSubscriberOfType(FileSystemBackgroundSessionHandler.self))
But I'm unsure what to do because I have no such file named AppDelegate
or ExpoAppDelegate
anywhere in my code.
I've tried a few things:
DerivedData
several timeseas-cli
version to 16.14.0ExpoAppDelegateSubscriber
" but it's not the same as my issue and none of those answers helped)Not sure what the exact issue was but I got my code to run by downgrading the eas-cli to version 16.2.0 and upgrading react native from 0.76.7 to 0.76.9.
I also deleted "expo-modules-core" from my package.json which is not needed in recent versions of the Expo SDK.
I also recommend using the commands npx expo-doctor
and `npx expo install --check` which can help you figure out why your builds are breaking.