ITMS-90792: Invalid font (10.2.0) Issue persists
JordanAlexa opened this issue · 5 comments
Environment
react-native-vector-icons 10.2.0
react-native 0.74.5
Description
I was under the impression that version 10.2.0 addressed this problem but unfortunately it's still rejecting my submissions, the latest rejection is clear:
ITMS-90792: Invalid font - There was an error validating the font named 'FontAwesome6Free-Solid' at 'MY.app/assets/node_modules/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Solid.ttf'. ‘glyf’ table instructions.
I tried to be thorough, I uninstalled the previous react-native-vector-icons, made sure the node_modules folder with this package was gone. I went to the ios/pods folder and removed it from there as well.
I ran npm install react-native-vector-icons@10.2.0
Afterwards I ran pod install from the ios directory
Everything looked great in TestFlight and of course as you can see it failed.
What might I be doing wrong here? Any guidance is deeply appreciated 🆘 😅
@JordanAlexa Looks like you are using @expo/vector-icons so you are using it's version of FontAwesome6_Solid.ttf and not the one that comes from react-native-vector-icons.
@JordanAlexa Looks like you are using @expo/vector-icons so you are using it's version of FontAwesome6_Solid.ttf and not the one that comes from react-native-vector-icons.
Interesting -- so it seems like what I need to do is remove the references to FontAwesome6 from @expo/vector-icons then? I fear removing @expo/vector-icons entirely may not be the right course.
Or perhaps I just need to copy the .ttf file itself from the latest version of react-native-vector-icons into that vector-icons folder to replace the old one?
You should be either using react-native-vector-icons or @expo/vector-icons but not both.
Probably worth opening a bug on @expo/vector-icons as well as this bug will affect their users too