showing - xcode 10 clang: error: linker command failed with exit code 1(use-v to see invocation)




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

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

  1. Go to Project Settings.
  2. Go to Build Settings.
  3. Change BUILD ACTIVE ARCHITECTURE ONLY to NO.

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

Good luck!


I just had similar problem in my project. I found that in GENERAL settings of the project in section "Linked Frameworks and Libraries" there are two files for pods: "libPods.a" and "Pods_ProjectName.framework"

Deleting "libPods.a" helped in my case.


Solution for me was adding `$(inherited) flag to LIBRARY_SEARCH_PATHS in target build settings.





swift2