-
Notifications
You must be signed in to change notification settings - Fork 2
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
FBReactNativeSpec error after upgrade from 0.63.4 to 0.64.0 #138
Comments
Got the same thing trying to upgrade from 0.64.0-rc.3 to stable 0.64.0.
Nothing helps. Xcode 12.4 |
I added |
after this trick i got this: CompileC /Users/user/Library/Developer/Xcode/DerivedData/AwesomeProject-btdlvrsshpcfmndosfollajacgcx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTVibration.build/Objects-normal/x86_64/RCTVibration.o /Users/pavelsytniakovskyi/Documents/React\ Native/AwesomeProject/node_modules/react-native/Libraries/Vibration/RCTVibration.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler also i noticed this So, still no answers? |
I had the same issue on my build server but not my dev machine and adding |
I have tried (unset npm_config_prefix) workaround but I am still getting this error and iOS build failed. Trying to solve this issue with no luck. |
@brandonpearcy thank you for the patch, and could you please explain in plain simple english what |
could you solve it? |
Unfortunately no :( |
What's more strange is that it works exactly the opposite in android. When |
Same issue here, looks like it's connected with the issues we faced on the Road to v0.64 Discussion #214 issue:
|
Facing same issue. Tried using |
Hey all, I got this issue as well, but before trying the monkey patch fix, I investigated my node and npm environment. Turns out I had a goofy environment (I think from installing node at one point with Homebrew, then from an installer, etc). I fixed my environment issues and this exact error disappeared. So, my advice is ensure your node environment is clean, your PATH is clean, etc. |
i reinstalled whole environment, tried to do it through bash and zsh, have the same results System: |
as turned out the problem was a space in the project path. Interesting that previous version wasn't be under this issue |
I was able to resolve this problem with node by the following commands:
|
Same issue goes for me... I have the following error when building with CLI or XCODE 12 :
|
In case anyone wants to try a temporary fix that worked for me: I ended up commenting all lines inside |
I had this same error in our monorepo before having a "duh" moment and remembering I have to update the react-native dependency in all the package.json files to match. Needless to say, React Native doesn't update often enough for me to remember this. Anyway, this fIxed the issue for me so I'm just leaving this comment in the off chance it saves someone else some time. |
This must be a joke, because I used a space in the parent folder name and it got fixed when I remove ../React Native/project -> ../ReactNative/project |
This did it for me, not sure if it is a permanent fix though?? Would it be smartest to add nvm or is that also a conditional fix? |
I changed the node.js version, and It was corrected. |
Came across this issue after upgrading from 0.66.4 to 0.67.1. First thing is to make sure Secondly if the script still fails, changing It looks like the line [ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm" in A more robust solution is to change that line to: if [[ -z "$NVM_DIR" ]]; then
export NVM_DIR="$HOME/.nvm"
fi that way the script will still exit on any genuine errors. EDIT: This started failing again, this time seemingly in the actual |
My fix, for now, is to clear the script. Not proud of it but progress over perfection when you're unblocking the build. Didn't like the idea of removing nvm or changing the desired version.
|
I think this issue has many solutions to fix it. Therefore, I closing it. |
Recently ran into this issue. Downgrading npm to version 16.x worked for me. I use nvm, so |
Hello, I come back 😅 My precedent comment is here #138 (comment) ... But now it doesn't work anymore 😏 But I fix the issue like that, I just comment these lines in node_modules/react-native/scripts/find-node.sh file:
I think there is a problem with my nvm config so I use my node version from brew. I hope it helps someone |
Worked for me 👯 |
It's really working for me, |
I'm currently facing this issue mac os 12.5 xcode 13 |
library not found for -lFBReactNativeSpec |
It's really working for me, |
Anyone else experiencing this on 0.69.4 ? |
Also worked for me too. My project was in folder with name "React Native" now I changed to "ReactNative". Now the error disappear. Thank you........ |
Still running into this when trying to patch a couple of react-native 0.66.3 files with |
I've made a brand new project, running on react-native version |
Setting the default alias for nvm to my current node version did the trick for me.
|
Why does it take me so long to find this comment LOL. It's exactly my case |
I had the same issue, |
Still having this issue with React 71.5. It builds locally but I can't get it run in the CI. Have tried all of the above! Driving me crazy. Anyone else still struggling with this or has another solution? Thanks! |
Cannot thank you enough , such a silly thing . I almost used same parent folder name |
I had the same issue FBReactNativeSpec failing on making the build. My specific case was that neither an init AwesomeProject to run a helloworld was lifting the ios project.
then open your Awesome.xcodeproj located on ios folder with Xcode |
This worked for me just dont have any spaces in your parent folder names |
yep this worked for me, thanks. |
Environment
System:
OS: macOS 11.2.3
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 1.27 GB / 16.00 GB
Shell: 5.8 - /usr/local/bin/zsh
Binaries:
Node: 12.18.0 - ~/.nvm/versions/node/v12.18.0/bin/node
Yarn: 1.22.10 - ~/.nvm/versions/node/v12.18.0/bin/yarn
npm: 6.14.5 - ~/.nvm/versions/node/v12.18.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK:
API Levels: 28, 29
Build Tools: 19.1.0, 20.0.0, 21.1.2, 22.0.1, 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.2, 30.0.3
System Images: android-28 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7042882
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_281 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: 0.64.0 => 0.64.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Things I’ve done to figure out my issue
I used react-native cli to upgrade and the following page to manually changes.
https://react-native-community.github.io/upgrade-helper/?from=0.63.4&to=0.64.0
Upgrading version
0.64.0
Description
I've faced the following error when I want to start the IOS app with the "react-native run-ios" command. If I start the debug build from XCode, it is started successfully.
/bin/sh -c /Users/keklikc/Library/Developer/Xcode/DerivedData/DataroidMobile-gmjqxfphavicwkcccsennxqbhvuj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-0565B84ED1A643A94B66851B97B33BAC.sh
nvm is not compatible with the "npm_config_prefix" environment variable: currently set to "/Users/keklikc/.nvm/versions/node/v12.18.0"
Run
unset npm_config_prefix
to unset it./Users/keklikc/.zshrc: line 83: zstyle: command not found
/Users/keklikc/.zshrc: line 84: zstyle: command not found
/Users/keklikc/.zshrc: line 85: zstyle: command not found
/Users/keklikc/.oh-my-zsh/tools/check_for_upgrade.sh: line 32: syntax error near unexpected token
)' /Users/keklikc/.oh-my-zsh/tools/check_for_upgrade.sh: line 32:
() {'/Users/keklikc/.oh-my-zsh/oh-my-zsh.sh: line 21: autoload: command not found
/Users/keklikc/.oh-my-zsh/oh-my-zsh.sh: line 39: syntax error near unexpected token
(' /Users/keklikc/.oh-my-zsh/oh-my-zsh.sh: line 39:
for plugin ($plugins); do'/Users/keklikc/.zshrc: line 120: autoload: command not found
/Users/keklikc/.zshrc: line 129: add-zsh-hook: command not found
nvm is not compatible with the "npm_config_prefix" environment variable: currently set to "/Users/keklikc/.nvm/versions/node/v12.18.0"
Run
unset npm_config_prefix
to unset it.Command PhaseScriptExecution failed with a nonzero exit code
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flipper-Glog' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'boost-for-react-native' 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.4.99. (in target 'Flipper-PeerTalk' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'YogaKit' from project 'Pods')
warning: no rule to process file '/Users/keklikc/Projects/Dataroid-MobileApp/ios/Pods/Flipper-RSocket/rsocket/README.md' of type 'net.daringfireball.markdown' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Users/keklikc/Projects/Dataroid-MobileApp/ios/Pods/Flipper-RSocket/rsocket/benchmarks/CMakeLists.txt' of type 'text' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')
warning: no rule to process file '/Users/keklikc/Projects/Dataroid-MobileApp/ios/Pods/Flipper-RSocket/rsocket/benchmarks/README.md' of type 'net.daringfireball.markdown' for architecture 'x86_64' (in target 'Flipper-RSocket' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flipper-DoubleConversion' from project 'Pods')
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/keklikc/Library/Developer/Xcode/DerivedData/DataroidMobile-gmjqxfphavicwkcccsennxqbhvuj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-0565B84ED1A643A94B66851B97B33BAC.sh
(1 failure)
Reproducible demo
Upgrade from 0.63.4 to 0.64.0 then execute react-native run-ios
The text was updated successfully, but these errors were encountered: