Pod install displaying error in cocoapods version 1.0.0.beta.1
Solution 1:
You have to specify a target for each pod.
e.g. if before you had your Podfile written like this:
pod 'Alamofire', '~> 3.1.4'
pod 'SwiftyJSON', '~> 2.3.2'
just change it to
target "TargetName" do
pod 'Alamofire', '~> 3.1.4'
pod 'SwiftyJSON', '~> 2.3.2'
end
Solution 2:
After the new changes to cocoapods, You have to add the following lines to your podfile.
target "YOUR_PROJECT_NAME" do
pod "YOUR_POD"
end
Solution 3:
From the CocoaPods website:
CocoaPods provides a
pod init
command to create a Podfile with smart defaults. You should use it.