question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Native BUILD FAILED on run-ios

See original GitHub issue

React Native version

System: OS: macOS 10.14.6 CPU: (4) x64 Intel® Core™ i5-7500 CPU @ 3.40GHz Memory: 249.73 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.13.0 - ~/.nvm/versions/node/v10.13.0/bin/node Yarn: 1.12.3 - /usr/local/bin/yarn npm: 6.4.1 - ~/.nvm/versions/node/v10.13.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3 IDEs: Android Studio: 3.4 AI-183.6156.11.34.5692245 Xcode: 10.3/10G8 - /usr/bin/xcodebuild npmPackages: react: 16.8.6 => 16.8.6 react-native: 0.60.5 => 0.60.5 npmGlobalPackages: react-native-cli: 2.0.1

Steps To Reproduce

  1. init a project with react-native init FirstNative
  2. run cd FirstNative and run react-native run-ios
  3. I got error same with Result
  4. To retry, init another project with react-native init TestNativeProject
  5. run cd TestNativeProject and react-native run-ios
  6. I got same error written at Result

Expected Behavior

Success of building the project

Result

The result is following error.

** BUILD FAILED **

The following build commands failed: CompileC /Users/LeeMoonki/Desktop/FirstNative/ios/build/FirstNative/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Folly.build/Objects-normal/x86_64/Unicode.o /Users/LeeMoonki/Desktop/TestNativeProject/ios/Pods/Folly/folly/Unicode.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure)

To see the exact error, I run the workspace of this project in the Xcode(v10.3) then the following error is occurred.

'folly/CppAttributes.h' file not found ColdClass.h

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:53 (1 by maintainers)

github_iconTop GitHub Comments

174reactions
toscanoGithubcommented, Feb 9, 2021

On Feb 8th 2021 still have this shitty error and everywhere is closed

147reactions
ubazingacommented, Feb 16, 2021

@saulo1212 try to replace use_flipper! with use_flipper!({ 'Flipper-Folly' => '2.3.0' }) in your Podfile, then remove Podfile.lock and run pod install

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native ios build failed on react-native run-ios
1 - Delete the folder node_modules and the folders of android and ios from project root: rm -rf node_modules/ ios/ android/ · 2...
Read more >
React native build failure | Apple Developer Forums
npx react-native run-ios. I get the error: error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code...
Read more >
How to Solve React Native (IOS) Build Failed on Apple M1 Pro ...
Here is the solution to Run and Build React Native on M1 Macbook Pro · A- Install Rosetta · B- Before opening terminal...
Read more >
How to Solve React Native Build Failed on M1 Macbook Pro / Air
Solution to Run and Build React Native on M1 Macbook Pro · Set Terminal App to use Rosetta :. Select the app in...
Read more >
Error in building ReactNative videoSDK sample code (IOS ...
... 「yarn run ios」, 「yarn run android」, I get an error and cannot build. Errors ios ~/Desktop/react-native-zoom-video-sdk-1.5.3/example ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found