Search code examples
xcodecocoaswift2

Cocoapods error: linker command failed with exit code 1 (use -v to see invocation)


First time using cocoa pods (latest version) for dependencies in the latest Xcode 7.2.1 with Swift 2.1. I initialize my project folder and then edit the podfile and add my dependencies. When I run pod install it runs without a hitch until I open my project and try to build. I've tried this with two separate projects (one being brand new for testing) and I get linker command failed with exit code 1 (use -v to see invocation) for both. My pod file looks like this:

platform :ios, '8.0' #8.0 is minimum supported, right?
use_frameworks!

target 'Testing Frameworks' do
    pod 'Alamofire', '~> 3.0'
end

Solution

  • Close your current project and open the .xcworkspace created in your project folder.

    Good luck!