flexn-io / create

Build apps for web, TVs, desktops, consoles, wearables and more. Developer friendly UI library targeting all form factors platforms. Another notable feature is providing focus management for TVs which very easy to implement using Create.
https://create.flexn.org
MIT License
26 stars 6 forks source link

react-native-vector-icons duplicates fonts #195

Open mihaiblaga89 opened 3 months ago

mihaiblaga89 commented 3 months ago

Having vector icons on ios it makes all the fonts duplicate and crash xcodebuild

❌  error: Multiple commands produce '/DerivedData/RNVApp/Build/Products/Debug-iphonesimulator/RNVApp.app/Zocial.ttf'
aurimasmi commented 2 months ago

From looks like it's expected https://github.com/oblador/react-native-vector-icons?tab=readme-ov-file#ios-setup

When using auto linking, it will automatically add all fonts to the Build Phases, Copy Pods Resources. Which will end up in your bundle. To avoid that, create a react-native.config.js file at the root of your react-native project with:

  module.exports = {
    dependencies: {
      'react-native-vector-icons': {
        platforms: {
          ios: null,
        },
      },
    },
  };