Pod install displaying error in cocoapods version 1.0.0.beta.1

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

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

From the CocoaPods website:

CocoaPods provides a pod init command to create a Podfile with smart defaults. You should use it.

Tags:

Ios

Cocoapods