My podfile was working but after updating to cocoapods version 1.0.0.beta.1
pod install displays following error
MacBook-Pro:iOS-TuneIn home$ pod ins
you must add target 'your target' do
and end
around you pod like below.
target 'your target' do
pod 'AFNetworking', '2.6.3'
pod 'MBProgressHUD', '~> 0.9.1'
pod 'PDKeychainBindingsController', '~> 0.0.1'
end
plus: You may be need remove the pods dir, Podfile.lock and xcworkspace file, run the pod install
again.
platform :ios, '8.0'
target 'YourTargetName' do
ALL PODS HERE
end
open terminal, go to project folder and enter code
pod update
I got the same issue today. For mitigation, I unintall cocoapod, then install again version 0.39.
here is the link how to uninstall: https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine
This answer does not fix the root cause, but can get you unblocked. I don't have enough reputation to leave comments, so I put an answer here to unblock you.
for New version of cocoapods i.i 1.0.1
pod 'SlideMenuControllerSwift' pod 'SDWebImage' pod 'SearchTextField'
I was getting error:
The dependency SlideMenuControllerSwift
is not used in any concrete target.
The dependency SDWebImage
is not used in any concrete target.
The dependency SearchTextField
is not used in any concrete target.
than i changed it to
target "YOUR_PROJECT_NAME" do
pod "YOUR_POD"
end
than it worked
I have the same problem, and even I changed to
target "TargetName" do pod 'Alamofire', '~> 3.1.4' pod 'SwiftyJSON', '~> 2.3.2' end
It seems has some cache problem, it always read old version of PodFile, even I remove PodFile, the same error show up. It's weird.
However, when I open a new terminal , running pod install, it works.
I was this operation in the podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
target "targetprojectname" do
pod "AFNetworking"
end