I’m trying to run a react-native project using the command react-native run-ios
but I’m getting the following errors:
Build system information
error: Multiple commands produce '/Users/prikshetsharma/Library/Developer/Xcode/DerivedData/Humboi-hjbrwqprmopoeybrdkwevgblfvis/Build/Products/Debug-iphonesimulator/Humboi.app/EvilIcons.ttf':
1) Target 'Humboi' (project 'Humboi') has copy command from '/Users/prikshetsharma/Desktop/Humboi/node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf' to '/Users/prikshetsharma/Library/Developer/Xcode/DerivedData/Humboi-hjbrwqprmopoeybrdkwevgblfvis/Build/Products/Debug-iphonesimulator/Humboi.app/EvilIcons.ttf'
2) That command depends on command in Target 'Humboi' (project 'Humboi'): script phase “[CP] Copy Pods Resources”
Build system information
error: Multiple commands produce '/Users/prikshetsharma/Library/Developer/Xcode/DerivedData/Humboi-hjbrwqprmopoeybrdkwevgblfvis/Build/Products/Debug-iphonesimulator/Humboi.app/Entypo.ttf':
1) Target 'Humboi' (project 'Humboi') has copy command from '/Users/prikshetsharma/Desktop/Humboi/node_modules/react-native-vector-icons/Fonts/Entypo.ttf' to '/Users/prikshetsharma/Library/Developer/Xcode/DerivedData/Humboi-hjbrwqprmopoeybrdkwevgblfvis/Build/Products/Debug-iphonesimulator/Humboi.app/Entypo.ttf'
2) That command depends on command in Target 'Humboi' (project 'Humboi'): script phase “[CP] Copy Pods Resources”
... (and so on)
warning: duplicate output file '/Users/prikshetsharma/Library/Developer/Xcode/DerivedData/Humboi-hjbrwqprmopoeybrdkwevgblfvis/Build/Products/Debug-iphonesimulator/Humboi.app/Feather.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/prikshetsharma/Library/Developer/Xcode/DerivedData/Humboi-hjbrwqprmopoeybrdkwevgblfvis/Build/Intermediates.noindex/Humboi.build/Debug-iphonesimulator/Humboi.build/Script-725F34421484E3F6E70FFBB5.sh (in target 'Humboi' from project 'Humboi')
warning: duplicate output file '/Users/prikshetsharma/Library/Developer/Xcode/DerivedData/Humboi-hjbrwqprmopoeybrdkwevgblfvis/Build/Products/Debug-iphonesimulator/Humboi.app/FontAwesome.ttf' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/prikshetsharma/Library/Developer/Xcode/DerivedData/Humboi-hjbrwqprmopoeybrdkwevgblfvis/Build/Intermediates.noindex/Humboi.build/Debug-iphonesimulator/Humboi.build/Script-725F34421484E3F6E70FFBB5.sh (in target 'Humboi' from project 'Humboi')
...(and so on)
How to fix the errors and the warnings?
2
Answers
Go to Xcode project:
For full installation of react-native-vector-icons follow this guide:
React Native Vector Icons
Because it happens by running this same file from bundle resources and pod resources
So you just
open xcode -> your_project.xcodeproj -> click project folder -> build phases -> open copy bundle resources -> remove the error formed duplicate files
only. don’t remove all the files like if it is in .ttf format. check your error log and remove it carefully. because you may configured any custom fonts or files in copy bundle resources