Boa noite!
Ao executar o comando 'react-native run-ios', é gerado o erro abaixo:
PS C:\Users\Jovian\Documentos\Estudos\@Jovian\Alura\ReactNative\InstaluraMobile> react-native run-ios
Found Xcode project InstaluraMobile.xcodeproj
spawnSync xcrun ENOENT
Error: spawnSync xcrun ENOENT
at Object.spawnSync (internal/child_process.js:982:20)
at spawnSync (child_process.js:596:24)
at Object.execFileSync (child_process.js:624:13)
at Object.runIOS [as func] (C:\Users\Jovian\Documentos\Estudos\@Jovian\Alura\ReactNative\InstaluraMobile\node_modules\react-native\local-cli\runIOS\runIOS.js:76:17)
at Promise.resolve.then (C:\Users\Jovian\Documentos\Estudos\@Jovian\Alura\ReactNative\InstaluraMobile\node_modules\react-native\local-cli\cliEntry.js:117:22)
Pesquisei na internet, mas não obtive sucesso.
Segue o 'react-native info':
PS C:\Users\Jovian\Documentos\Estudos\@Jovian\Alura\ReactNative\InstaluraMobile> react-native info
React Native Environment Info:
System:
OS: Windows 10
CPU: x64 Intel(R) Core(TM) i5-3337U CPU @ 1.80GHz
Memory: 3.87 GB / 7.71 GB
Binaries:
Yarn: 1.10.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5014246
Ao tentar executar com o comando pro Android 'react-native unr-android' também me gera mensagem de erro, mas, novamente, eu não consegui encontrar algo que eu possa corrigir:
PS C:\Users\Jovian\Documentos\Estudos\@Jovian\Alura\ReactNative\InstaluraMobile> react-native run-android
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug)...
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
[adb]: * daemon not running; starting now at tcp:5037
[adb]: * daemon started successfully
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: No connected devices!
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 30s
27 actionable tasks: 1 executed, 26 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
Gostaria de verificar com vocês se já passaram por esse erro, se sabem o que pode ser, etc.
Agradeço a força!
Abraços!