João Correia
João Correia

Reputation: 79

Cocoapods "No such module <pod>"

I'm new to Cocoapods:

platform :ios, '8.0'

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

My podfile has this lines and 3 targets. And I'm trying to do: import ReachabilitySwift and error "No such module 'ReachabilitySwift'" comes.

Any help?

Upvotes: 3

Views: 1827

Answers (2)

Tomasz Wójcik
Tomasz Wójcik

Reputation: 962

If you are using CocoaPods 1.0.0 then you need to explicitly set the target:

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

Upvotes: 2

Vineeth Vijayan
Vineeth Vijayan

Reputation: 1329

Please use

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

platform :ios, '8.0'

use_frameworks!

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

You have to give the source of Cocoapods

Upvotes: 0

Related Questions