如何在app和扩展程序中使用cocoapods

时间:2017-05-03 07:08:57

标签: ios xcode cocoapods podfile

我想在主应用及其扩展中使用一些库。我试过这个dplyr

setDT(df1)[, .(fields = .N), company]

但是我的df1 <- data.frame(company=c("c1","c2","c3","c2","c1","c2"), field=c("A","B","C","A","D","C")) 名为podfile,而它应该是platform :ios, '10.2' use_frameworks! target 'myApp' do target 'myAppShareExtension' do pod 'SVProgressHUD', :git => 'https://github.com/SVProgressHUD/SVProgressHUD.git' pod 'Alamofire', '~> 4.0' pod 'FileKit', '~> 4.0.1' end end ,这让我觉得问题来自podfile。

感谢。

1 个答案:

答案 0 :(得分:0)

你可以试试这个:

分享多个目标的广告连播的最佳方式:

def shared_pods
            pod 'SVProgressHUD', :git => 'https://github.com/SVProgressHUD/SVProgressHUD.git'
            pod 'Alamofire', '~> 4.0'
            pod 'FileKit', '~> 4.0.1'

end

target 'myApp' do
    shared_pods
end

target 'myAppShareExtension' do
    shared_pods
end