Hi I am seeing an issue when trying to build an IPA in xcode from a freshly created expo app which is then ejected
Steps to reproduce
-
expo init
(expo-template-blank) yarn eject
- open ./ios/projectname.xcodeproj in xcode
- Add developer profile and targets in xcode
- Product → Archive in xcode
I get the following error
+ node /homedirectory/myproject/node_modules/react-native/cli.js bundle --entry-file index.js --platform ios --dev false --reset-cache --bundle-output /Users/chrisnguyen/Library/Developer/Xcode/DerivedData/myproject-ebqzpglnxqxqwpbhycscfpmybmos/Build/Intermediates.noindex/ArchiveIntermediates/myproject/BuildProductsPath/Release-iphoneos/myproject.app/main.jsbundle --assets-dest /Users/chrisnguyen/Library/Developer/Xcode/DerivedData/myproject-ebqzpglnxqxqwpbhycscfpmybmos/Build/Intermediates.noindex/ArchiveIntermediates/myproject/BuildProductsPath/Release-iphoneos/myproject.app
/homedirectory/myproject/node_modules/@react-native-community/cli/build/cliEntry.js:168
async function run() {
^^^^^^^^
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/homedirectory/myproject/node_modules/@react-native-community/cli/build/index.js:5:40)
+ [[ false != true ]]
+ [[ ! -f /Users/chrisnguyen/Library/Developer/Xcode/DerivedData/myproject-ebqzpglnxqxqwpbhycscfpmybmos/Build/Intermediates.noindex/ArchiveIntermediates/myproject/BuildProductsPath/Release-iphoneos/myproject.app/main.jsbundle ]]
+ echo 'error: File /Users/chrisnguyen/Library/Developer/Xcode/DerivedData/myproject-ebqzpglnxqxqwpbhycscfpmybmos/Build/Intermediates.noindex/ArchiveIntermediates/myproject/BuildProductsPath/Release-iphoneos/myproject.app/main.jsbundle does not exist. This must be a bug with'
error: File /Users/chrisnguyen/Library/Developer/Xcode/DerivedData/myproject-ebqzpglnxqxqwpbhycscfpmybmos/Build/Intermediates.noindex/ArchiveIntermediates/myproject/BuildProductsPath/Release-iphoneos/myproject.app/main.jsbundle does not exist. This must be a bug with
+ echo 'React Native, please report it here: https://github.com/facebook/react-native/issues'
React Native, please report it here: https://github.com/facebook/react-native/issues
Expo CLI 2.19.3 environment info:
System:
OS: macOS 10.14.5
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.9.0 - ~/.nvm/versions/node/v10.16.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 2.3 AI-162.4069837
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.8 => 0.59.8
npmGlobalPackages:
expo-cli: 2.19.3