** BUILD FAILED **
The following build commands failed:
CpResource /Users/angel/RNcomponent/node_modules/react-native-vector-icons/Fonts/Octicons.ttf build/Build/Products/Debug-iphonesimulator/Jzcapp.app/Octicons.ttf
(1 failure)
➜ react-native-vector-icons git:(master) ✗ cd Fonts
➜ Fonts git:(master) ✗ ls
Entypo.ttf MaterialCommunityIcons.ttf
EvilIcons.ttf MaterialIcons.ttf
FontAwesome.ttf Octicons.ttf
Foundation.ttf SimpleLineIcons.ttf
Ionicons.ttf Zocial.ttf
Ran into the same issue, any updates on this?
Resolved the issue with a hack on Xcode, on Build Phases > Copy Link Binaries there were duplicate font files, and I removed the ones not from the "react-native-vector-icons" folder and it compiled afterwards. I'm sure it's going to break when we upgrade, and hopefully with that upgrade this goes away.
Not sure but maybe you did both manual and automatic integration?
Closing for lack of replies
This type of error started with 'CpResource' occurs when you are trying to load assets from a directory and that asset file is not present in that directory.
Hi, how did you fix this?
@angelporo @oblador
@Kailash23 yes, but how can the font be missing from the node_modules folder after an npm i / yarn install?
Most helpful comment
Resolved the issue with a hack on Xcode, on Build Phases > Copy Link Binaries there were duplicate font files, and I removed the ones not from the "react-native-vector-icons" folder and it compiled afterwards. I'm sure it's going to break when we upgrade, and hopefully with that upgrade this goes away.