question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Xcode 11] 'Multiple commands produce' error when building with new Xcode build system

See original GitHub issue

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:closed
  • Created 4 years ago
  • Reactions:102
  • Comments:81

github_iconTop GitHub Comments

1309reactions
jackljcommented, Sep 23, 2019

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! in ios/Podfile means when you do pod install, any pods found in node_modules are automatically linked. This means that links to all font files are added to [CP] Copy Pods Resources when you do pod install.

If you previously installed react-native-vector-icons manually by adding the font files to Copy 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.

1150reactions
bpouzetcommented, Sep 23, 2019

Find a solution, simply remove duplicate reference fonts in “Copy Bundle Resources” NOT in “[CP] Copy Pods Resources”

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found