2015-11-09 26 views
2

我是新来的CocoaPods:的CocoaPods “没有这样的模块<pod>”

platform :ios, '8.0' 

use_frameworks! pod 'ReachabilitySwift', git: 'https://github.com/ashleymills/Reachability.swift'

我podfile有这个线和3个目标。我试图这样做: import ReachabilitySwift和错误“没有这样的模块'ReachabilitySwift'”来。

任何帮助?

回答

0

请使用

source 'https://github.com/CocoaPods/Specs.git' 

platform :ios, '8.0' 

use_frameworks! 

pod 'ReachabilitySwift', git: 'https://github.com/ashleymills/Reachability.swift' 

你必须给的CocoaPods

+0

此错误不断也显示何时“pod安装” –

+0

[!]“Project [Release]'目标覆盖'Pods/Target Support Files/Pods-Pr中定义的'OTHER_LDFLAGS'构建设置oject /豆荚-Project.release.xcconfig”。这可能会导致与CocoaPods安装 –

+0

和“没有这样的模块...”不断出现 –

2

的来源,如果你正在使用的CocoaPods 1.0.0,那么你需要明确设定目标:

source 'https://github.com/CocoaPods/Specs.git' 

platform :ios, '8.0' 

use_frameworks! 

target '<Name matching XCode target>' do 
    pod 'ReachabilitySwift', git: 'https://github.com/ashleymills/Reachability.swift' 
end