0
我只在target3中使用react-native,作为框架属于target1,target1有target2副本。那么,如何将target3分享给target1 & target2。自爆Podfile是错误与The target 'target3' is declared twice for the project 'Target3/Target3.xcodeproj'.
Cocoapods如何将相同的目标共享到其他多个目标
target 'target1' do
use_frameworks!
target 'target3' do
use_frameworks!
react_native_path = 'node_modules/react-native/'
pod 'React', :path => react_native_path, :subspecs => [
'Core',
'BatchedBridge',
]
end
end
target 'target2' do
use_frameworks!
target 'target3' do
use_frameworks!
react_native_path = 'node_modules/react-native/'
pod 'React', :path => react_native_path, :subspecs => [
'Core',
'BatchedBridge',
]
end
end