oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.37k stars 2.12k forks source link

react-native run-ios BUILD FAILED !!! hint not Octicons.ttf file but has Octicons.ttf #500

Closed angelporo closed 6 years ago

angelporo commented 7 years ago
** 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
askarhu commented 7 years ago

Ran into the same issue, any updates on this?

askarhu commented 7 years ago

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.

oblador commented 7 years ago

Not sure but maybe you did both manual and automatic integration?

oblador commented 6 years ago

Closing for lack of replies

Kailash23 commented 4 years ago

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.

cjayprime commented 4 years ago

Hi, how did you fix this?

cjayprime commented 4 years ago

@angelporo @oblador

AlphaJuliettOmega commented 3 years ago

@Kailash23 yes, but how can the font be missing from the node_modules folder after an npm i / yarn install?