Error failed to build IOS project. We ran “xcodebuild” command but it exited wit

did not change the profile file before NPM run ios is no error. After changing the profile to introduce react and using pod install, the error report is as follows:

error 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


1. Delete the item dependent package and the yarn cache

rm -rf node_modules & & yarn cache clean

2. Repackage

yarn install

3. Clear React-Native cache

rm -rf ~/.rncache

New folder .rncache

mkdir ~/.rncache

5. Directly run the download script


6. If the download is completed, run react-native run-ios directly to succeed

7. If the download fails, run the code in 4 repeatedly for more than 20 times before I succeed, or do the following steps

8. The four download links are key, use the tool to download these four files. download link is closely related to React-Native version, please check the file version carefully.





page open the link to download

9. After downloading, enter directory

open ~ /. Rncache

10. Move the four downloaded files to the directory

11. Run the installation script again, because you are using the local download file, all run quickly


12. If not successful, continue running node_modules/react-native/scripts/ ix-install – thirdparty. sh until successful

13. The project can run, the first start will be a little slow, patience will wait on the line

react-native run-ios

Read More: