1
votes

I have an existing project, that have been tested on an windows + android setup. Now I'm trying to run it on a macbook to test on an Iphone 11 simulator.

  • react-native-cli: 2.0.1
  • react-native: 0.64.0

I install the pod file and try to run

react-native run-ios

I get a the following error:

** BUILD FAILED **

The following build commands failed: CompileC [USER]/Library/Developer/Xcode/DerivedData/andon-hkuetryxdipcrgbcxnseaqnfnaqp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactCommon.build/Objects-normal/x86_64/RCTTurboModuleManager.o [PROJECT_PATH]/node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure)

1
Do you install Xcode? If you installed Xcode, you try to execute it after cloning the project again.oh3vci

1 Answers

0
votes

enter image description here enter image description here

  • Under XCode top menu, Goto XCode->Preferences -> Locations -> Open Derived Data folder(By clicking the arrow button) (Find screenshot for your references)

  • Finder will open Derived Data folder,

  • Delete Derived Data Folder

  • Start Metro server using npm start or yarn start

  • Perform Clean build using cmd+shift+k

  • Run the application using cmd+r