2017-02-21 41 views
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 

回答

0

我相信这些问题是由于不正确的搜索路径造成的添加到引用/DerivedData/文件夹的库搜索路径以及添加的其他链接标志-all_load