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.44k stars 2.12k forks source link

autolinking #1300

Open ghost opened 3 years ago

ghost commented 3 years ago

Does this package support autolinking? If so, will you include a section in the docs?

gabimoncha commented 3 years ago

@oblador This package doesn't support autolinking, even though React Native is trying to do it.

parazitenew commented 3 years ago

Nope. https://github.com/oblador/react-native-vector-icons/issues/1294#issuecomment-774457601

ardyfeb commented 3 years ago

@vigzmv have you tried before recommending this ? its doesn't work

mtczuk commented 3 years ago

Apparently autolinking did work for me. I am using react-native 0.64.0 and react-native-vector-icons 8.1.0.

I tried use the manual configuration for iOS, but got the following error

error: Multiple commands produce '/Users/<my username>/Library/Developer/Xcode/DerivedData/<app name>-efeosujuydrjlrdwqlyvdundviil/Build/Products/Debug-iphonesimulator/<app name>.app/MaterialIcons.ttf':
1) Target '<app name> (project '<app name>') has copy command from '/Users/<my username>/Documents/code/<project directory>/ios/MaterialIcons.ttf' to '/Users/<my username>/Library/Developer/Xcode/DerivedData/<app name>-efeosujuydrjlrdwqlyvdundviil/Build/Products/Debug-iphonesimulator/<app name>.app/MaterialIcons.ttf'
2) That command depends on command in Target '<app name>' (project '<app name>'): script phase “[CP] Copy Pods Resources”

I was able to fix this by removing the ttf files from my Xcode project, but keeping the Info.plist configuration detailed in the manual configuration section.

LogicAnalysis commented 3 years ago

Apparently autolinking did work for me. I am using react-native 0.64.0 and react-native-vector-icons 8.1.0.

I tried use the manual configuration for iOS, but got the following error

error: Multiple commands produce '/Users/<my username>/Library/Developer/Xcode/DerivedData/<app name>-efeosujuydrjlrdwqlyvdundviil/Build/Products/Debug-iphonesimulator/<app name>.app/MaterialIcons.ttf':
1) Target '<app name> (project '<app name>') has copy command from '/Users/<my username>/Documents/code/<project directory>/ios/MaterialIcons.ttf' to '/Users/<my username>/Library/Developer/Xcode/DerivedData/<app name>-efeosujuydrjlrdwqlyvdundviil/Build/Products/Debug-iphonesimulator/<app name>.app/MaterialIcons.ttf'
2) That command depends on command in Target '<app name>' (project '<app name>'): script phase “[CP] Copy Pods Resources”

I was able to fix this by removing the ttf files from my Xcode project, but keeping the Info.plist configuration detailed in the manual configuration section.

Thank you so much!! I've been having this issue and couldn't find a solution anywhere else!

levepic commented 7 months ago

It always fails whatever I do I get this error