[Xcode 11] 'Multiple commands produce' error when building with new Xcode build system
See original GitHub issue- Review the documentation: https://github.com/oblador/react-native-vector-icons
- Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues
Environment
MacOS 10.14.6 RN 0.60.5 Latest RNVI Building on iOS
Description
Describe your issue in detail. Include screenshots if needed.
Reproducible Demo
https://github.com/facebook/react-native/issues/20492#issuecomment-533912772
On Xcode before upgrade 11, things work correctly and font assets copy without fatal error.
After Xcode 11 stable released and upgraded, it required fonts removal under [CP] Copy Pods Resources
in Build Phases. Subsequent pod update
brings them back, needing manual removal again.
Not sure if this is fixable only with special treatment on Xcode >= 11?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:102
- Comments:81
Top Results From Across the Web
Xcode 10 Error: Multiple commands produce - Stack Overflow
this error may happen when you choose a name for your project that is the same as one of the dependencies that you...
Read more >Xcode 12.5 Multiple commands produ… - Apple Developer
Hi, I'm from the App Center SDKs team. After updating Xcode from 12.4 to 12.5 our team faced build issues similar to this:...
Read more >Xcode Error: Multiple commands produce - Handy Opinion
"Multiple commands produce" is a common Error in Xcode when we build our App. Changing Build system to Legacy Build System is a...
Read more >Solve Xcode11 "Multiple commands produce" error - YouTube
The problem seems to be caused by the new autolinking feature in React Native 0.60 - the line use_native_modules! in ios/Podfile means when ......
Read more >xcode 12 New Build System warns multiple commands ...
(1) Quick and dirty way is to fallback to Legacy Build System (File -> Workplace Settings). However, this doesn't solve the problem but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Removing duplicate font files in
Copy Bundle Resources
worked for me.The problem seems to be caused by the new autolinking feature in React Native 0.60 - the line
use_native_modules!
inios/Podfile
means when you dopod install
, any pods found innode_modules
are automatically linked. This means that links to all font files are added to[CP] Copy Pods Resources
when you dopod install
.If you previously installed
react-native-vector-icons
manually by adding the font files toCopy Bundle Resources
, you then get a “Multiple commands produce…” fatal build error.So to fix the problem, just remove the font files from
Copy Bundle Resources
, so that they are only in[CP] Copy Pods Resources
.Find a solution, simply remove duplicate reference fonts in “Copy Bundle Resources” NOT in “[CP] Copy Pods Resources”