0
我正在經歷很多'重新定義'和'有一個先前的聲明'錯誤最近更新我的Podfile。我有多個目標,我在他們之間共享幾個豆莢。我以前使用0.XX,最近更新到1.2,並一直試圖跟上Podfile的標準。cocoapods多重目標結果重新定義
我從什麼是最近更新我的Podfile:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
link_with 'Target1', 'Target2', 'Target3', 'Target4', 'Target5', 'Target6'
pod 'RestKit', '0.24.0'
pod 'MBProgressHUD', '0.9'
pod 'MHVideoPhotoGallery', '1.6'
什麼是可可豆莢預期的1.2:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
def core_pods
pod 'RestKit', '0.26.0'
pod 'MBProgressHUD', '0.9'
pod 'MHVideoPhotoGallery', '1.6'
pod 'FLKAutoLayout', '1.0.0'
pod 'IGListKit', '~> 2.0.0'
end
abstract_target 'core' do
core_pods
target 'Target1'
target 'Target2'
target 'Target3'
target 'Target4'
target 'Target5'
target 'Target6'
end