Skip to content
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

React native build failed for init RN 0.63.4 xcode 12.4 RN 0.61.5 working fine #30991

Closed
RejoV opened this issue Feb 12, 2021 · 10 comments
Closed
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@RejoV
Copy link

RejoV commented Feb 12, 2021

System:
OS: macOS 11.2.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 1.70 GB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.15.1 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.8 - /usr/local/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: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7042882
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: 15.0.1 - /usr/bin/javac
Python: 3.7.6 - /Users/xxxx/opt/anaconda3/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.4 => 0.63.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Error shown

The following build commands failed:
CompileC /Users/xxxx/Library/Developer/Xcode/DerivedData/testProj-gttdtokougyaeyaukpnbpyhshzvf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper.build/Objects-normal/x86_64/FlipperRSocketResponder.o /Users/xxxx/Dafidy/Testing/testProj/ios/Pods/Flipper/xplat/Flipper/FlipperRSocketResponder.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

getting error by doing
react-native init testProj
cd testProj
npx react-native run-ios

@zizouvb
Copy link

zizouvb commented Feb 12, 2021

You may want to check this issue #30836
and especially this comment : #30836 (comment)

@RejoV
Copy link
Author

RejoV commented Feb 14, 2021

You may want to check this issue #30836
and especially this comment : #30836 (comment)

I replaced <use_flipper!> with <use_flipper!({ 'Flipper-Folly' => '2.3.0' })> still problem exists

@DKolev
Copy link

DKolev commented Feb 17, 2021

Hi, I'm having a similar problem.
After migrating to RN 0.63.4 from 0.61.5, I can't build my project. For the past 2 days, I'm researching for a solution but still no luck.

If I use use_flipper!({ 'Flipper' => '0.75.0' }, configurations: ['Debug', 'ReleaseRun'])
I get an error in DistributebMutex-inl.h file and when I click on it, it's going down to this part of the code in it: template <typename Atomic> void wakeTimedWaiters(Atomic* state, bool timedWaiters) { if (UNLIKELY(timedWaiters)) { atomic_notify_one(state); } }

I tried to comment out the flipper related code in the Podfile and this works on a freshly init RN project. My team still don't use Flipper so for the moment this would be sufficient.

But, when I comment the flipper related code in my work project, I get the following build error:
ld: warning: directory not found for option '-L-L/Users/dimitar.kolev/Library/Developer/Xcode/DerivedData/cc-avxgovnmtpzxrcfkmekdjdlsmxlz/Build/Products/Debug-iphoneos/DoubleConversion' ld: library not found for -lDoubleConversion clang: error: linker command failed with exit code 1 (use -v to see invocation)

Update:
The second problem seems to be caused by us using the Legacy Build System (we are currently forced to due to a 3rd party SDK dependency). It's the same when tried on the fresh clean RN 0.63.4 project with. The Flipper issue remains though.

Any suggestions?

@Ppang0405
Copy link

Ppang0405 commented Feb 20, 2021

@DKolev Same as you. I feel no hope right now.

@marcoisgood
Copy link

@Ppang0405 Dude, I feel hopeless either. after tried every each solution, issue is still fucking there.

@varwasabi
Copy link

For anyone having this issue. Disabling hermes on iOS and commenting out flipper in the Podfile will remove the error until there's a fix released.

@tubo-15
Copy link

tubo-15 commented Jun 1, 2021

is this solved

@codr36
Copy link

codr36 commented Jul 15, 2021

Still having the same issue. Driving me crazy.

Copy link

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.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Nov 14, 2023
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

8 participants