profile
viewpoint

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

<!-- Requirements: please go through this checklist before opening a new issue -->

  • [x] Review the documentation: https://github.com/oblador/react-native-vector-icons
  • [x] Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues

<!-- Describe your environment (OS, target platform, react-native-vector-icons version etc.) -->

Environment

MacOS 10.14.6 RN 0.60.5 Latest RNVI Building on iOS

<!-- Describe what happened, what worked and didn't work as expected -->

Description

Describe your issue in detail. Include screenshots if needed.

<!-- Providing us with a demo of the bug can help if the behaviour is hard to reproduce -->

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?

oblador/react-native-vector-icons

Answer questions awgeorge

Is there anyway to disable this feature? We're still on .59 and the linking happens in our build process. We don't have our workspace committed, the pipeline literally does a pod install and react native link every time. Now our builds fail as its duplicating these fonts.

useful!

Related questions

[Android] Failed to notify project evaluation listener. hot 1
ignoring duplicated output file: hot 1
Native module cannot be null on React Native 0.59+ hot 1
Error: Multiple commands produce in Xcode 10 hot 1
TypeError: Cannot read property 'Item' of undefined when use TabBarItemIOS in RN 0.59 hot 1
Unrecognized font family Material Icons? hot 1
Get error Unrecognized font family 'icomoon' hot 1
Crash Android 4.4: Resources$NotFoundException: File res/drawable/abc_vector_test.xml hot 1
Unrecognized font family only with react-native run-ios hot 1
RCTFont+FA5.m not found hot 1
resolve error could not resolve all artifacts for configuration ':react-native-vector-icons: classpath'. hot 1
Error: Multiple commands produce in Xcode 10 hot 1
Unable to Build Ios Project RCTFont.h file not found hot 1
Metro from RN 0.60.0 warns that rnpm config is deprecated and will stop working in the next release hot 1
Unable to resolve module 'react-native-vector-icons/FontAwesome' hot 1
Github User Rank List