React-native-vector-icons: react-native run-ios BUILD FAILED !!! hint not Octicons.ttf file but has Octicons.ttf

Created on 23 Jun 2017  Â·  8Comments  Â·  Source: oblador/react-native-vector-icons

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

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.

All 8 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jakewtaylor picture jakewtaylor  Â·  4Comments

tharrington picture tharrington  Â·  4Comments

emretekince picture emretekince  Â·  4Comments

jszcl picture jszcl  Â·  3Comments

toddmetheny picture toddmetheny  Â·  4Comments