Multiple targets match implicit dependency for linker flag '-lRNVectorIcons' in xcome>product>archive
See original GitHub issueI 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:
- Created 2 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:npx react-native unlink react-native-vector-icons
pod install
:pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
Info.plist
:This worked for me That command depends on command in Target ‘MyApp’ (project ‘MyApp’): script phase “[CP] Copy Pods Resources”