3

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?

2 Answers 2

2

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
Sign up to request clarification or add additional context in comments.

Comments

0

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

6 Comments

This error keeps on showing also when "pod install"
[!] The Project [Release] target overrides the OTHER_LDFLAGS build setting defined in `Pods/Target Support Files/Pods-Project/Pods-Project.release.xcconfig'. This can lead to problems with the CocoaPods installation
And "No such module ..." keeps appearing
sorry try pod install --verbose
Follow the link to install pods in your project... guides.cocoapods.org/terminal/commands.html#commands
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.