Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve an error in Xcode 10: Multiple commands produce....../Fonts

I have React Native App. And I installed react-native-vector-icons library. And after I get this error in Xcode:

Multiple commands produce '/Users/jocoders/Library/Developer/Xcode/DerivedData/openCalls-gtlsipogexxyteffomqvumgwiihd/Build/Products/Debug-iphonesimulator/openCalls.app/Fonts':

  1. Target 'openCalls' (project 'openCalls') has copy command from '/Users/jocoders/openCalls/node_modules/react-native-vector-icons/Fonts' to '/Users/jocoders/Library/Developer/Xcode/DerivedData/openCalls-gtlsipogexxyteffomqvumgwiihd/Build/Products/Debug-iphonesimulator/openCalls.app/Fonts'
  2. Target 'openCalls' (project 'openCalls') has copy command from '/Users/jocoders/openCalls/node_modules/react-native-vector-icons/Fonts/Fonts' to '/Users/evgeniykireev/Library/Developer/Xcode/DerivedData/openCalls-gtlsipogexxyteffomqvumgwiihd/Build/Products/Debug-iphonesimulator/openCalls.app/Fonts'
like image 384
jocoders Avatar asked Dec 22 '22 22:12

jocoders


2 Answers

I just had the same issue specifically with react-native-vector-icons using RN 0.61.4 and Xcode 11.2.1 while upgrading an app to > 0.6. What I ended up doing to get it to build was go to Build Phases -> [CP] Copy Pod Resources -> Deleted references to react-native-vector-icons fonts. Then rebuilt and everyone ran nicely. I did notice the fonts were already in the Resources folder on the project explorer on the left. I also commented out the # pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons' line in the Podfile and ran pod install but not sure if the affected it or not. This is just a patch but hope it helps.

enter image description here

like image 70
Sam S Avatar answered Dec 25 '22 23:12

Sam S


Remove duplicate items from Copy bundle resources.

For ref please check image

like image 38
Sushil Mishra Avatar answered Dec 26 '22 00:12

Sushil Mishra