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