Cli: `react-native run-ios` build failure "x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler "

Created on 10 Nov 2020  路  16Comments  路  Source: react-native-community/cli

I just updated to RN v0.63.3, although im not sure this related to the upgrade. I was having issues with react-native run-ios on previous react-native version after changing the name of the app, and the project/schemes had different names, never got that issue solved, everyone said to just upgrade.

now on v0.63.3 there is still an issue with failing build after react-native run-ios. this time the error is:

* BUILD FAILED *

The following build commands failed:

CompileC /Users/vorousjames/Library/Developer/Xcode/DerivedData/-gdmnlxiprekjqhfiueouiidqhqnl/Build/Intermediates.noindex/.build/Debug-iphonesimulator/.build/Objects-normal/x86_64/AppDelegate.o /Users/Desktop/Development/App/iOS//AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)

There is NO issue building/running from inside Xcode. ONLY with react-native run-ios

EDIT: I thought maybe there was an issue with the fact that I had the cli globally installed since I was just calling react-native run-ios. I believe that uses the global installation. so since its outdated, I uninstalled globally and tried to use the community package with npx react-native run-ios. now its giving another compileC error, but different.

* BUILD FAILED *

The following build commands failed:

CompileC /Users/Library/Developer/Xcode/DerivedData/App-gdmnlxiprekjqhfiueouiidqhqnl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNFirebase.build/Objects-normal/x86_64/RNFirebaseMessaging.o /Users/Desktop/Development/App/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

CompileC /Users/Library/Developer/Xcode/DerivedData/App-gdmnlxiprekjqhfiueouiidqhqnl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNFirebase.build/Objects-normal/x86_64/RNFirebaseFirestore.o /Users/Desktop/Development/App/node_modules/react-native-firebase/ios/RNFirebase/firestore/RNFirebaseFirestore.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (2 failures)

This is completely killing my ability to iterate quickly, any advice is welcomed

react-native: 0.63.3 react-native-cli (global): 2.0.1 react-native-community/cli: ^4.8.0 Xcode: 12.0.1 iOS: 14.0.1

bug report

Most helpful comment

All 16 comments

Use a local version of the CLI like yarn react-native run-ios or npm run react-native run-ios. The npx command may still pick up global version on some occasions :<

? what do you mean @thymikee
The errors are different for the three commands I use. npx / yarn / npm run

Command I expect to work, Android works
npx react-native run-ios

** BUILD FAILED **
The following build commands failed:
        CompileC /Users/x/Library/Developer/Xcode/DerivedData/x-x/Build/Intermediates.noindex/x.build/Debug-iphonesimulator/x.build/Objects-normal/x86_64/AppDelegate.o /Users/x/code/x-mobile/x/ios/x/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Yarn run?


The following build commands failed:
        CompileC /Users/x/Library/Developer/Xcode/DerivedData/x-x/Build/Intermediates.noindex/x.build/Debug-iphonesimulator/x.build/Objects-normal/x86_64/AppDelegate.o /Users/x/code/x-mobile/x/ios/x/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

error Command failed with exit code 1.

npm run? (I'm specifically avoiding Npm for this project, so this is expected output)

npm ERR! missing script: react-native

Why was this issue closed?
What do you mean about the Global Version?

I don't have React Native global installed because the docs recommend running through npx, at least how I understand it.

@AlphaJuliettOmega are you able to solve this error? I am also facing the same issue.

are you able to solve this error? I am also facing the same issue

@RusherK I solved this issue, so please follow the below steps to solve it
1.Make sure every package which you have installed is linked properly.
2.Find if you imported a package in a file and now you don't have that package installed.

  1. Open xxx.xcworkspace instead of xxx.codeproj with xCode and try to run from there.

These steps worked for me.I hope this will help you.

Any updates on this one?

any update ?

@marian-galik I tried the solution on that question but that gives me this error message:
[!] There are duplicate dependencies on FlipperKit in Podfile:

Any suggestion?

@marian-galik I fixed It :)

By updating the latest Flipper SDK, the issue got resolved:
iOS:

Call use_flipper with a specific version in ios/Podfile, for example: use_flipper!({ 'Flipper' => '0.78.0' }).
Run pod install in the ios directory.

https://fbflipper.com/docs/getting-started/react-native/

It's really weird, but after the last xcode update, updating the Flipper SDK has become useless for me.

You can try to comment use_flipper!({ 'Flipper' => '...' }) or use_flipper line

Updating to xcode 14.5 has also broken my build too, flipper-folly seems to be the culprit, it fails when trying to CompileC on the flipper-folly pod. So far neither useFlipper! or use_flipper!({ 'Flipper-Folly' => '2.5.1' }) works.

Updating to xcode 14.5 has also broken my build too, flipper-folly seems to be the culprit, it fails when trying to CompileC on the flipper-folly pod. So far neither useFlipper! or use_flipper!({ 'Flipper-Folly' => '2.5.1' }) works.

Downgrading Flipper-Folly to v2.3.0 fixed the issue:

  • use_flipper!({ 'Flipper-Folly' => '2.3.0' })

Updating to xcode 14.5 has also broken my build too, flipper-folly seems to be the culprit, it fails when trying to CompileC on the flipper-folly pod. So far neither useFlipper! or use_flipper!({ 'Flipper-Folly' => '2.5.1' }) works.

Downgrading Flipper-Folly to v2.3.0 fixed the issue:

  • use_flipper!({ 'Flipper-Folly' => '2.3.0' })

use_flipper!({ 'Flipper-Folly' => '2.3.0' }) or use_flipper!({ 'Flipper-Folly' => '2.5.1' }) doesnt work after upgrade to xcode 14.5
Do I need to reinstall pods, update something or cleanup pod repo?

Was this page helpful?
0 / 5 - 0 ratings