0
私はtarget3にのみ反応ネイティブを使用します。これは、フレームワークがtarget1に属しているので、target1によってtarget2のコピーがあります。次に、target1を両方の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