08 de abril de 2021 • 1 min de leitura
As soluções que estão aqui são as que funcionaram comigo, podem ou não serem úteis, mas eu espero que alguma seja útil :)
Solução:
$ sudo xcode-select --switch /Applications/Xcode.appSolução:
$ brew update
$ brew install watchmanSolução:
$ npx react-native link
$ npx react-native unlink react-native-vector-iconsinfo: Na versão 0.60+ do React Native ele tem o Autolinking e ao realizar o link, algumas dependências podem ficar duplicadas, que é o caso do react-native-vector-icons
IPHONEOS_DEPLOYMENT_TARGET is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99Solução:
No arquivo Podfile você pode:
1 - Setar o valor do IPHONEOS_DEPLOYMENT_TARGET com uma versão compatível(9.0 a 14.0.99)
2 - Ou você pode remover o IPHONEOS_DEPLOYMENT_TARGET
3 - Você também pode verificar e alterar a versão do platform :ios
1:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end2:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end3:
platform :ios, '9.0'Solução: 1 - Vá até o diretório dists: C:\Users\USERNAME\.gradle\wrapper\dists 2 - Delete as pastas do gradle 3 - Tente novamente: npx react-native run-android