-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Build Error with react-native version - 0.64.0 #31259
Comments
getting the same issue here bro =/ |
same issue here |
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/hst/Library/Developer/Xcode/DerivedData/Dexterdexterdexter-bvrfxnwqxcnvncbdgyjgbsnncpdf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-F2DBC065B2DB02AC085CBB151E776788.sh (in target 'FBReactNativeSpec' from project 'Pods') bash: native/dexterProject/rn_shopify_dexterdexte/node_modules/react-native/scripts/../Libraries: No such file or directory |
note: Using new build system CreateBuildDirectory /Users/KaungHtetHein/Library/Developer/Xcode/DerivedData/Test-djpqufrdykchmndenlqdgmakkite/Build/Intermediates.noindex (in target 'glog' from project 'Pods') warning: Skipping duplicate build file in Copy Headers build phase: /Users/KaungHtetHein/Projects/Sample Projs/Test/node_modules/react-native/React/FBReactNativeSpec/Projs/Test/node_modules/react-native/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h (in target 'FBReactNativeSpec' from project 'Pods') warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.4, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'Flipper-PeerTalk' from project 'Pods') ** BUILD FAILED ** The following build commands failed: Same here !! |
After two days of trying i found the solution in deleting spaces in the path where your project lives and run. But in order for this to work properly follow these steps: In order for this to work properly follow these steps:
Crazy and absurd that a space in the path-name could cause this issue |
@giuseppealbrizio - Yeah, It worked 💯 No Sure why it changed different for this version which is breaking build when path have spaces. |
@Anuj-Raghuvanshi And also there are no reference to this issue in the official doc. There's only a convention in naming the folder project but not how your paths have to be structured. crazy things happen there at FB : 😂 |
did not work for me XC |
@ingjjaa2 - Have you checked your path ?? by simply doing If not any space is there, Have you deleted |
I have create a new empty project in the folder "/Users/user/Documents/codigosPruebas/ReactNative/test" i have delete the yarn.lock, package-lock.json node_modules and pods and reinstall it and nothing |
which command you are using for runnning app ? |
npx react-native run-ios (in androide it work perfect, but there is no way i could run it in IOS emulator)...... Something i see is that when i wirte in the comand line "react-native -v" the command line return me : i guess that maybe i would have installe an old react-native-cli version but i have run "npm uninstall -g react-native-cli" and it still keep return me version, would that be the problem ??? |
@ingjjaa2 - Not sure on this. If you have installed Node using NVM. You can try setting up new node and creating a new project at correct path (Should not contain space). I did same when I was stuck and it worked for me. |
You mean uninstall Node and reinstall it???, i have installed it using the pkg files of the website, another thing is i guess that "/Users/user/Documents/codigosPruebas/ReactNative/test" is a right path right ??? |
No, don't go for deleting if u have installed node via pkg. Seems you have to wait until any collaborate responds |
@ingjjaa2 yes you have to delete the global installation of react-native-cli. Regarding the node version installed on your machine you can check -v in different path with these commands if you are on mac:
If the first one is different from the second one check where you ve installed node and which version you re using, cause you can have different version on your machine causing the build to fail or react native to handle with the right node version. |
thanks for help i have check the version and the answer is : user@users-MacBook-Pro ~ % /usr/local/bin/node -v I have uninstall the cli times using "sudo npm uninstall -g react-native-cli" |
My path to project is: I created a new project using the command
|
have you find any solution ??? |
@ingjjaa2 Not yet. |
@sumanbhattarai did you check your node version? Someone is experiencing this issue with an old installed version of node. Check if you have differences between these two paths
|
@giuseppealbrizio i have v14.16.0 for both of them. |
@sumanbhattarai if you cd in your ios path and then pwd in your terminal what's the result? |
@giuseppealbrizio |
@sumanbhattarai - Did you also tried these steps - ?
|
@Anuj-Raghuvanshi Had tried all of them. |
Removing
from And Commenting out all the code from |
I resolved this issue after uninstall global installed node. check these: |
Xcode 12.2 I used So, the next actions helped me: Deleted Node: |
I submitted a fix here, I don't feel like homebrew nvm and react-native should be mutually exclusive #31740 |
I tried almost everything state here, since I refused to change my path name because React Native can't handle spaces. However, nothing worked, so I quit being stubborn and just removed the space. Very annoying though that this just doesn't work. Things I tried:
Nothing worked. |
I solved this problem by installing Xcode 12.4 in Catalina. I used to have Xcode 11.4 and none of the above solutions worked. |
I fixed this issue by copying my project folder to path without whitespaces. |
in your terminal go check your path by typing pwd |
it is really strange bug out of box. Uninstalling nvm didn't worked |
Moving the project folder in a path with no spaces works |
I've had this issue using Fastlane on our CI server, in order to fix the issue, I added some commands to clean pods entirely and do a completely clean installation - before running the Fastlane bundle commands
It was using cache from previous pods/builds. If you're having this issue you can try these commands above. |
I've had this issue when building in CircleCI. It was this issue: nvm-sh/nvm#1985 Fixed it by making sure to use the node version that comes preinstalled in the container (can be found in https://circleci.com/docs/2.0/testing-ios/#supported-xcode-versions). I guess if you need to use a different node version you could |
I stuck in this problem for totally a whole day. This solution really works! Many Thanks! |
@supervons I get that error with |
@mlazari Thanks for you information,i'll check it out. |
In my case I use nvm to manage my versions, it worked for me |
upgrade nvm version to 0.39.1, it worked for me |
Upgrading to nvm version 0.39.1 worked for me too. I was getting build errors having updated to RN 0.67.4 when I was running NVM 0.32.x. |
Me funciono realizar esta configuración comentando las líneas en .bash_profile y en la carpeta project/node_modules/react-native/scripts/find-node.sh solo comentar unas líneas (ver imagen)... |
Following worked me (with the initial answer from giuseppealbrizio)
Good luck |
i have the same issue! Woa! |
Verify that
|
Remove |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
thank you so much you saved me. it's work finally after 2 days. |
Description
** BUILD FAILED ** always when try to run project with version 0.64.0. All works fine when I run with lower versions of react native.
React Native version:
Steps To Reproduce
npx react-native init MyAwesomeProject
npx react-native run-ios
Expected Results
Snack, code example, screenshot, or link to a repository:
Not have any additional Code to attach as project new initialized project. Here's complete output of run-ios -
The text was updated successfully, but these errors were encountered: