Multiple targets match implicit dependency for linker flag '-lRNVectorIcons' in xcome>product>archive

See original GitHub issue

I am trying to build using xcode>product>archive, i keep getting below error , can someone check on this

Target Integrity Group
Multiple targets match implicit dependency for linker flag '-lRNVectorIcons'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in target 'xUI' from project 'xUI')
Error Group
Multiple commands produce '/Users/user20/Library/Developer/Xcode/DerivedData/xUI-awhgnkdgdnqqhybhizmenofqnvvg/Build/Intermediates.noindex/ArchiveIntermediates/xUI/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libRNVectorIcons.a':
1) Target 'RNVectorIcons' has a command with output '/Users/user20/Library/Developer/Xcode/DerivedData/xUI-awhgnkdgdnqqhybhizmenofqnvvg/Build/Intermediates.noindex/ArchiveIntermediates/xUI/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libRNVectorIcons.a'
2) Target 'RNVectorIcons' has a command with output '/Users/user20/Library/Developer/Xcode/DerivedData/xUI-awhgnkdgdnqqhybhizmenofqnvvg/Build/Intermediates.noindex/ArchiveIntermediates/xUI/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libRNVectorIcons.a'

pod file


require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '11.0'

target 'xUI' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )
  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

  target 'xUITests' do
    inherit! :complete
    # Pods for testing
  end
  post_install do |installer|
    installer.pods_project.targets.each do |target|
     target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
     end
    end
   end
end
version:
 npm: '7.19.1',
 node: '16.6.0',
 react: 17.0.1 => 17.0.1 
 react-native: ^0.64.2 => 0.64.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
jefawks3commented, Nov 19, 2021

I just upgraded react-native-vector-icons and was running into the same issue.

Apparently, I had run npx react-native link react-native-vector-icons at some point and this worked for me:

  1. Run npx react-native unlink react-native-vector-icons
  2. Make sure the following is in your Podfile, if not, add it and run pod install: pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
  3. Make sure the following is in your Info.plist:
<key>UIAppFonts</key>
<array>
  <string>AntDesign.ttf</string>
  <string>Entypo.ttf</string>
  <string>EvilIcons.ttf</string>
  <string>Feather.ttf</string>
  <string>FontAwesome.ttf</string>
  <string>FontAwesome5_Brands.ttf</string>
  <string>FontAwesome5_Regular.ttf</string>
  <string>FontAwesome5_Solid.ttf</string>
  <string>Foundation.ttf</string>
  <string>Ionicons.ttf</string>
  <string>MaterialIcons.ttf</string>
  <string>MaterialCommunityIcons.ttf</string>
  <string>SimpleLineIcons.ttf</string>
  <string>Octicons.ttf</string>
  <string>Zocial.ttf</string>
  <string>Fontisto.ttf</string>
</array>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple targets match implicit dependency for linker flags
This happens when a Podfile has multiple targets, each of which has an implicit dependency on another pod.
Read more >
Flutter iOS - Multiple targets match implicit dependency for ...
Here is the error: **Multiple targets match implicit dependency for linker flags '-framework Reachability'. Consider adding an explicit ...
Read more >
How to use RN-VectorIcons library in REACT-NATIVE CLI
'Multiple targets match implicit dependency for linker flag '-lRNVectorIcons'. Consider adding an explicit dependency on the intended target ...
Read more >
Multiple targets match implicit dependency for linker flags ...
Coding example for the question Flutter iOS - Multiple targets match implicit dependency for linker flags '-framework Reachability'-Flutter.
Read more >
Multiple targets match implicit dependency for linker flags
Multiple targets match implicit dependency for product reference 'libReactNativeNavigation.a'. Consider adding an explicit dependency on the intended target to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found