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

Error during app build: Multiple commands produce #251

Open
JustJoostNL opened this issue Jul 25, 2024 · 18 comments
Open

Error during app build: Multiple commands produce #251

JustJoostNL opened this issue Jul 25, 2024 · 18 comments

Comments

@JustJoostNL
Copy link

I installed react-native-filament according the docs, but I receive this error:

Multiple commands produce '/Users/expo/Library/Developer/Xcode/DerivedData/MyApp-ghhktuklewzjozbubcwfbrzgmmoa/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/react_native_filament.framework/Headers/compiler.h'

    duplicate output file '/Users/expo/Library/Developer/Xcode/DerivedData/MyApp-ghhktuklewzjozbubcwfbrzgmmoa/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/react_native_filament.framework/Headers/compiler.h' on task: CpHeader /Users/expo/Library/Developer/Xcode/DerivedData/MyApp-ghhktuklewzjozbubcwfbrzgmmoa/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/react_native_filament.framework/Headers/compiler.h /Users/expo/workingdir/build/node_modules/react-native-filament/ios/libs/filament/include/math/compiler.h (in target 'react-native-filament' from project 'Pods')

Just FYI, I don't use the new architecture.

Thanks in advance for help!

@hannojg
Copy link
Member

hannojg commented Jul 25, 2024

Are you able to provide a reproduction example? (I tested RNF in another expo app a few days ago and everything was working there)

Seems like filament and expo both have a header file called compiler.h and those are conflicting 🤔

@JustJoostNL
Copy link
Author

I will provide a repo with an example soon 🙂

@JustJoostNL
Copy link
Author

@hannojg https://github.com/JustJoostNL/rn-filament-example

The app fails building with the above errors from earlier.

@hannojg
Copy link
Member

hannojg commented Jul 25, 2024

Do you get the build error on iOS or android?

@JustJoostNL
Copy link
Author

JustJoostNL commented Jul 25, 2024

iOS, didn't test Android yet.

@JustJoostNL
Copy link
Author

@hannojg

I've done some more research, and I don't think the issue is on Expo's side here.

/Users/expo/workingdir/build/node_modules/react-native-filament/ios/libs/filament/include/camutils/compiler.h
/Users/expo/workingdir/build/node_modules/react-native-filament/ios/libs/filament/include/math/compiler.h

If you look at the paths, you can see that math and camutils both produce an output file with the same name.
https://github.com/margelo/react-native-filament/blob/main/package/ios/libs/filament/include/camutils/compiler.h
https://github.com/margelo/react-native-filament/blob/main/package/ios/libs/filament/include/math/compiler.h

These are the only libraries that have a compiler.h too. So I guess something has to be changed here?

@antochan
Copy link

antochan commented Aug 9, 2024

same issue here

@JustJoostNL
Copy link
Author

Is there any update on this? Would love to try out the library!

@Skipperlla
Copy link

Is there any progress on how it's going to be resolved?

@hannojg
Copy link
Member

hannojg commented Oct 17, 2024

I have't had time yet to look into yet, no

@stereodenis
Copy link

I think problem is here
Xcode 2024-10-17 18 17 13

@Kelier
Copy link

Kelier commented Nov 29, 2024

need to fix! 📞

@Misterr-H
Copy link
Contributor

hi guys, any update on this?

@JustJoostNL
Copy link
Author

Is there anyone working on this? I believe this is a pretty important issue because it has impact on many people.

@hannojg
Copy link
Member

hannojg commented Jan 21, 2025

I used your reproduction here:

ran:

  • bun i
  • npx expo prebuild -p ios (waited for pod install to finish)
  • xed ios
  • Compiled the project in Xcode.

And it was working 🤔
How did you reproduce this? (also tried bun ios which uses the expo run ios script, and thats working as well)

@JustJoostNL
Copy link
Author

Mmm, that's interesting. In my case, I still get the error. Is someone else able to provide another example project where it is failing?

@hannojg
Copy link
Member

hannojg commented Jan 22, 2025

Did you run the exact same steps as I did in the comment above?

@JustJoostNL
Copy link
Author

I've used eas build --platform ios. Also, maybe this helps: #251 (comment)?

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

7 participants