10000 `react-native run-ios` build failure "x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler " · Issue #1311 · react-native-community/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

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

Closed
vorousjames opened this issue Nov 10, 2020 · 35 comments

Comments

@vorousjames
Copy link

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/<OLD_NAME>-gdmnlxiprekjqhfiueouiidqhqnl/Build/Intermediates.noindex/<NEW_NAME>.build/Debug-iphonesimulator/<NEW_NAME>.build/Objects-normal/x86_64/AppDelegate.o /Users/Desktop/Development/App/iOS/<OLD_NAME>/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

@thymikee
Copy link
Member

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 :<

@AlphaJuliettOmega
Copy link
AlphaJuliettOmega commented Dec 4, 2020

? 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.

@hackrx
Copy link
hackrx commented Dec 7, 2020

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

@RusherK
Copy link
RusherK commented Dec 15, 2020

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

@hackrx
Copy link
hackrx commented Dec 15, 2020

@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.
3. 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.

@Rolando-Barbella
Copy link

Any updates on this one?

@omarTrigui20
Copy link

any update ?

@marian-galik
Copy link

https://stackoverflow.com/questions/66118122/lexical-or-preprocessor-issue-event2-event-config-h-file-not-found

this worked for me

@daniel1up
Copy link

@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?

@daniel1up
Copy link

@marian-galik I fixed It :)

@MintakanValerie
Copy link

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/

@cherkanovart
Copy link

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

@AlexHooperDev
Copy link

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.

@mqueiroz1995
Copy link

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' })

@oleksandr-dziuban
Copy link
oleksandr-dziuban commented Apr 27, 2021

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?

@oleksandr-dziuban
Copy link

@thangpq
Copy link
thangpq commented Oct 13, 2021

There are several way to suddenly your project building failure. I dont know and dont care, I just know how to fix.! I will show you all of them:
=> ios/podfile: comment:
# use_flipper!()

    #  post_install do |installer|
    #    react_native_post_install(installer)
    #  end

=> Open Xcode by file in ios foulder (yourProject.xcworkspace) then right click to your project add swift file then ok. (dont think too much, just do it =_=).

=> one of 2 ways below cant make your project building success, but it still bulding failure just do last way I know:
because you installed react-native-navigator then you install "react-native-reanimated" that make your project build failure so fix it:
npm install react-native-reanimated@2.3.0-beta.2

If 3 ways below cant fix ??? so you should carefull by testing all package that you installed by testing them:

  • create new project, install step by step pakage then: react-native run-ios => what pakage cause failure that problem => search: "....failure-pakage + bulding failure + react native"

I JUST MADESS AFTER LEAN REACT-NATIVE SO I DONT WANNA ANYONE ELSE MAD LIKE ME +____+
GOODLUCK

@ccraig09
Copy link

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 :<

this worked for me

@yilmar0309
Copy link

it worked for me
platform :ios, '10.0' to platform :ios, '11.0'

@goul4rt
E7EE Copy link
goul4rt commented Apr 12, 2022

Please checkout our podfiles, check if all versions off plataform :ios.
This need be:
platform :ios, '11.0'

Common problem using onesignal.

@harryt04
Copy link

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 :<

it is outrageous that you closed this issue after a half-assed response like that.

@thymikee
Copy link
Member

I guess my advice wasn't exactly on point. If something like this still happen, please open a new issue with a repro

@TienRyo
Copy link
TienRyo commented Nov 2, 2022

@gulshanAI
Copy link
gulshanAI commented Dec 8, 2022

Occur due to some mismatch of packages, search for a package which shows the error and remove the package

After that

delete ios folder
install react native eject package

npm i react-native-eject

re-create ios folder
npx react-native eject

install pod

cd ios
pod install

@sanoofrahiman960
Copy link
sanoofrahiman960 commented Jul 7, 2023

#> facebook/react-native#31179

facebook/react-native#31441

There are several way to suddenly your project building failure. I dont know and dont care, I just know how to fix.! I will show you all of them: => ios/podfile: comment: # use_flipper!()

    #  post_install do |installer|
    #    react_native_post_install(installer)
    #  end

=> Open Xcode by file in ios foulder (yourProject.xcworkspace) then right click to your project add swift file then ok. (dont think too much, just do it =_=).

=> one of 2 ways below cant make your project building success, but it still bulding failure just do last way I know: because you installed react-native-navigator then you install "react-native-reanimated" that make your project build failure so fix it: npm install react-native-reanimated@2.3.0-beta.2

If 3 ways below cant fix ??? so you should carefull by testing all package that you installed by testing them:

  • create new project, install step by step pakage then: react-native run-ios => what pakage cause failure that problem => search: "....failure-pakage + bulding failure + react native"

I JUST MADESS AFTER LEAN REACT-NATIVE SO I DONT WANNA ANYONE ELSE MAD LIKE ME +____+ GOODLUCK

i got this error"require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

how too solve "p/ios/milmaDataEntry/AppDelegate.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'milmaDataEntry' from project 'milmaDataEntry')
(1 failure)
"

my pod file is attached here
Screenshot 2023-07-07 at 10 59 42 AM

@sanoofrahiman960
Copy link

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 proj F438 ect/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/<OLD_NAME>-gdmnlxiprekjqhfiueouiidqhqnl/Build/Intermediates.noindex/<NEW_NAME>.build/Debug-iphonesimulator/<NEW_NAME>.build/Objects-normal/x86_64/AppDelegate.o /Users/Desktop/Development/App/iOS/<OLD_NAME>/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

i got error like this "/AppDelegate.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'milmaDataEntry' from project 'milmaDataEntry')
(1 failure)"
Screenshot 2023-07-07 at 11 07 42 AM

my pod file attached below please help

@hamzakashifCL
Copy link

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/<OLD_NAME>-gdmnlxiprekjqhfiueouiidqhqnl/Build/Intermediates.noindex/<NEW_NAME>.build/Debug-iphonesimulator/<NEW_NAME>.build/Objects-normal/x86_64/AppDelegate.o /Users/Desktop/Development/App/iOS/<OLD_NAME>/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

i got error like this "/AppDelegate.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'milmaDataEntry' from project 'milmaDataEntry') (1 failure)" Screenshot 2023-07-07 at 11 07 42 AM

my pod file attached below please help

you able to resolve this?

@hamzakashifCL
Copy link

I am getting this error whenever I build npx reaxct-native run-ios
I have attached my pod file along with command line error and error I gets when I build directly from XCode
Screenshot 2023-07-25 at 12 26 20 PM
Screenshot 2023-07-25 at 12 25 59 PM
Screenshot 2023-07-25 at 12 25 07 PM

@stnrd
Copy link
stnrd commented Jul 25, 2023

I was struggling with this issue last week and it kind of disappeared. I cleared all my cache yarn cache clean and pod cache clean --all and rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" my clang cache.

After that, I was able to rebuild the app using Xcode. I can't really pinpoint what exactly solved my issue which is quite concerning...

@hamzakashifCL
Copy link

Yes, I updated my React native version to 0.71.6, it keeps on giving this error

@facuescobar
Copy link

I've upgraded my project from "0.70.8" to "0.72.3", and still getting the error.

I've tried everything mentioned above, but didn't work.
Any suggestions?

    "react": "18.2.0",
    "react-native": "0.72.3",

@hamzakashifCL
Copy link

I resolved the error after commenting out below command in my pod file

# :flipper_configuration => FlipperConfiguration.enabled,

and used the solution provided here https://mrdevgeek.com/xcode-14-3-simulator-16-4-build-failure-how-to-fix-value-is-unavailable-introduced-in-ios-12-0-error-with-react-native-0-71-5/

@MuhammadAbdullah54321
Copy link

I am facing this issues after I tried to upgrade react-native version from 0.63.4 to 0.71.3 and made changes to podfile according to react native upgrade helper

1 similar comment
@MuhammadAbdullah54321
Copy link

I am facing this issues after I tried to upgrade react-native version from 0.63.4 to 0.71.3 and made changes to podfile according to react native upgrade helper

@AmilaJJ
Copy link
AmilaJJ commented Jul 24, 2024

https://stackoverflow.com/questions/66118122/lexical-or-preprocessor-issue-event2-event-config-h-file-not-found

this worked for me

If you re working with a m1 chip, Downgrade @react-native-community/datetimepicker to version 7.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0