Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native-vector-icons duplicates fonts #195

Open
mihaiblaga89 opened this issue Mar 14, 2024 · 1 comment
Open

react-native-vector-icons duplicates fonts #195

mihaiblaga89 opened this issue Mar 14, 2024 · 1 comment

Comments

@mihaiblaga89
Copy link
Contributor

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
Copy link
Contributor

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,
        },
      },
    },
  };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants