Cocoapods&#34;没有这样的模块<pod>&#34;

时间:2015-11-09 04:19:45

标签: ios swift cocoapods

我是Cocoapods的新手:

platform :ios, '8.0'

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

我的podfile有这些行和3个目标。我试图这样做: import ReachabilitySwift and error&#34;没有这样的模块&#39; ReachabilitySwift&#39;&#34;来了。

任何帮助?

2 个答案:

答案 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

答案 1 :(得分:0)

请使用

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

platform :ios, '8.0'

use_frameworks!

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

你必须提供Cocoapods的来源

相关问题