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 · 8 comments
Open

Error during app build: Multiple commands produce #251

JustJoostNL opened this issue Jul 25, 2024 · 8 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!

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

3 participants