Closed jerrychong25 closed 5 years ago
@Piero87 I had exactly the same problem, I just delete the
build
folder inside/ios
then just run againreact-native run-ios
and the error disappear.This should be the answer
Work fine after deleting build folder and re-run
If you don't have cocoa pods installed you need to
sudo gem install cocoapods
- cd /ios
- run
pod install
- cd ..
- delete build folder
- run
react-native run-ios
if error persists,
- delete build folder again
- open the
/ios
folder in x-code- navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System
Thanks. it works goooooooood.
Eu tentei todas as opções acima e ainda assim, nada funciona. Tudo estava bem até que eu atualizei meu sistema operacional hoje (atualização de 30 min).
Atualização: excluí o arquivo AwesomeProject e inicializei um novo e a compilação foi bem-sucedida. No entanto, agora recebo uma mensagem no simulador dizendo "não foi possível conectar ao servidor de desenvolvimento"
Atualização 2 : excluir a pasta de compilação funcionada, voltando a ver a tela "Bem-vindo ao reagir no simulador do iPhone"
Comigo foi assim também, mas e so dar um ( command + R ) pra resetar a conexão
@Piero87 I had exactly the same problem, I just delete the
build
folder inside/ios
then just run againreact-native run-ios
and the error disappear.
Thanks
Literally, not even a single one could fix the issue. I tried all the suggestions. The only solution I might need to do is formatting my whole mac with a clean installation of all tools.
If you don't have cocoa pods installed you need to
sudo gem install cocoapods
- cd /ios
- run
pod install
- cd ..
- delete build folder
- run
react-native run-ios
if error persists,
- delete build folder again
- open the
/ios
folder in x-code- navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System
It's working. Thank you
This error occurred when I opened my project for the first time in XCode cuz i needed to add a library. Deleting the build folder in the ios folder alone didn't work for me.
What worked for me:
- In XCode set "Build System" to "Legacy Build System" (File -> Project Settings -> Build System -> Legacy Build System)
- Delete the "build" folder in the "ios" folder
- npm install (I also deleted my node_modules, cuz was installing a new library)
- react-native run-ios
Perfect it worked for me,,Thanks
This worked for me!
react-native start --reset-cache
rm -rf node_modules/
rm -rf package-lock.json
cd ios
pod deintegrate
cd ..
rm -rf ios/Podfile.lock
npm install
npm audit fix
react-native link
cd ios
pod install
cd ..
react-native run-ios
@phuongthuan @garshen Your solution not worked for me
Nothing above worked for me. Only worked when I include --scheme param in react-native run-ios
react-native run-ios --scheme "xxxx"
@thiagosrib How can you set the scheme param. I also facing the same error.
Can you brief me about scheme param?
@nihp in my case, the project that I work has two schemes in Xcode (Dev and Prod).
So, I used the command below and it worked for me
react-native run-ios --scheme "Dev"
or react-native run-ios --scheme "Prod"
sudo gem install cocoapods
cd ios
(Folder in your react-native project)pod install
react-native run-ios
@nihp to create schemes, on Xcode goes to Product -> Schemes -> Manage Schemes... -> (Plus icon to create new scheme)
.
After create a new scheme, you can manage the configurations chosing Edit option.
Sorry for the delay in my answer.
Can anyone of you confirm after upgrading how your Header Seach Paths are? Is it like (${PODS_ROOT}/Headers/Public/BugsnagReactNative") Or ($RCTROOT/filename).
What is the correct one after upgrade to 0.60.0 or 0.61.5
Ok, I got it. Had issues setting-up a new project after not using React-Native for a lot of time.
My system:
macOS High Sierra 10.13.6 XCode 9.4 Had to reinstall the project in order to use the installation guide from version 0.59.0, because the installation guide from 0.61 uses approach with npx react-native ..., which disallows the usage of react-native below 0.60 (quite totalitarian). 0.59.0 was still using the global version of react-native installed through npm.
In other words: Reinstall the project by removing the old one and use the steps mentioned in the "Getting Started" guide of React-Native 0.59.0 (or any other version compatible with your version of OS and XCode) to install your project again. No need to delete any build or node_modules or installing pods again and so forth, just pick the version of React-Native compatible with your macOS and Xcode (by downgrading and reinstalling the project until you get it) and no need to upgrade to the latest versions, they are developed for the latest systems, if you don't want to buy the latest devices to support the latest software (OS) or you can't afford them, just stay with the old ones - it's totally fine :)
should be remove build folder in folder ios and run again, I work good
I did every single thing above but still the issues, I can't build my ios app :(
when i run my react-native project on terminal for ios i faced this issue??is there any solution i tried everything but i can't run my app and my xcode not working when i open my project. "Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening demo.xcworkspace"
@Khushboo-gupta-123 I got the same result. I know this is not the solution you are looking for, but what worked for me was deleting my Node Modules and then Yarn them back and if-so fact-o, it worked. Not a fix, but it worked for me.
What worked for me was to rename the project by removing the special characters.
Example: "project_marketplace" to "projectmarketplace"
In this case, I redid the project with react-native init and copied the src and package.json folder.
Hi All! I have updated Xcode to 11.4. It solves this problem for me.
This happens when you terminate the metro bundler terminal window. So make sure you start the metro bundler again by running
npx react-native start
then open your iOS project in Xcode Goto -> Product -> Clean build folder. Then goto your terminal project path start again
npm react-native run-ios
Hope it helps
🐛 Bug Report
To Reproduce
1) Open Getting Started for macOS iOS. 2) Follow all dependencies installation steps 3) Create a new application via command:
react-native init AwesomeProject
4) Run AwesomeProject via command:5) Error occured when running project:
6) Run sample app failed.
Expected Behavior
Run sample app successfully.
Code Example
Run new project named AwesomeProject as mentioned in Getting Started for macOS iOS.
Environment
Debug Log
Could anyone assist on this issue?
Thanks.