我是Cocoapods的新手:
platform :ios, '8.0'
use_frameworks!
pod 'ReachabilitySwift', git: 'https://github.com/ashleymills/Reachability.swift'
我的podfile有这些行和3个目标。我试图这样做: import ReachabilitySwift and error"没有这样的模块' ReachabilitySwift'"来了。
任何帮助?
答案 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的来源