Hello everyone. I have a react native app, I am trying to build it for ios in order to update old version in apple store connect, however I am getting the AppDelegate errors below on build. (I am using a Windows computer and Visual Studio Code)
yarn run v1.22.17 $ /Users/expo/workingdir/build/node_modules/.bin/expo prebuild --no-install --platform ios
- Creating native project directories (./ios and ./android) and updating .gitignore
✔ Created native project | gitignore skipped
- Adding Metro bundler config
› Metro skipped: Project metro.config.js does not match prebuild template. › Ensure the project uses expo/metro-config. Learn more: https://docs.expo.dev/guides/customizing-metro
- Updating your package.json scripts, dependencies, and main file
✔ Updated package.json and added index.js entry point for iOS and Android › Removed "main": "node_modules/expo/AppEntry.js" from package.json because we recommend using index.js as main instead
- Config syncing
[stderr]
Using node to generate images. This is much slower than using native packages.
[stderr]
› Optionally you can stop the process and try again after successfully running npm install -g sharp-cli
.
- Config syncing
✖ Config sync failed [stderr] UnexpectedError: [ios.dangerous]: withIosDangerousBaseMod: Could not locate a valid AppDelegate at root: "/Users/expo/workingdir/build" [stderr] Please report this as an issue on https://github.com/expo/expo-cli/issues [stderr] UnexpectedError: [ios.dangerous]: withIosDangerousBaseMod: Could not locate a valid AppDelegate at root: "/Users/expo/workingdir/build" [stderr] Please report this as an issue on https://github.com/expo/expo-cli/issues [stderr] at getAppDelegateFilePath (/Users/expo/workingdir/build/node_modules/expo-splash-screen/node_modules/@expo/config-plugins/build/ios/Paths.js:113:11) [stderr] at getAppDelegate (/Users/expo/workingdir/build/node_modules/expo-splash-screen/node_modules/@expo/config-plugins/build/ios/Paths.js:178:20) [stderr] at Object.getSourceRoot (/Users/expo/workingdir/build/node_modules/expo-splash-screen/node_modules/@expo/config-plugins/build/ios/Paths.js:183:23) [stderr] at /Users/expo/workingdir/build/node_modules/expo-splash-screen/node_modules/@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/withIosSplashAssets.js:103:66 [stderr] at action (/Users/expo/workingdir/build/node_modules/expo-splash-screen/node_modules/@expo/config-plugins/build/plugins/withMod.js:235:29) [stderr] at interceptingMod (/Users/expo/workingdir/build/node_modules/expo-splash-screen/node_modules/@expo/config-plugins/build/plugins/withMod.js:126:27) [stderr] at action (/Users/expo/workingdir/build/node_modules/@expo/config-plugins/build/plugins/withMod.js:206:14) [stderr] at async interceptingMod (/Users/expo/workingdir/build/node_modules/@expo/config-plugins/build/plugins/withMod.js:105:21) [stderr] at async interceptingMod (/Users/expo/workingdir/build/node_modules/@expo/config-plugins/build/plugins/withMod.js:105:21) [stderr] at async action (/Users/expo/workingdir/build/node_modules/@expo/config-plugins/build/plugins/createBaseMod.js:61:21) [stderr] at async interceptingMod (/Users/expo/workingdir/build/node_modules/@expo/config-plugins/build/plugins/withMod.js:105:21) [stderr] at async evalModsAsync (/Users/expo/workingdir/build/node_modules/@expo/config-plugins/build/plugins/mod-compiler.js:204:25) [stderr] at async Object.compileModsAsync (/Users/expo/workingdir/build/node_modules/@expo/config-plugins/build/plugins/mod-compiler.js:124:10) [stderr] at async configureProjectAsync (/Users/expo/workingdir/build/node_modules/@expo/cli/build/src/prebuild/configureProjectAsync.js:54:15) [stderr] at async prebuildAsync (/Users/expo/workingdir/build/node_modules/@expo/cli/build/src/prebuild/prebuildAsync.js:83:9) [stderr] error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. yarn exited with non-zero code: 1
Also I am getting expo-doctors warnings, which tell that some dependencies should be updated. I have updated those dependencies and still getting the same errors.
Thanks in advance :)