Linker Command Failed with Exit Code 1 After Installing Cocoapods and Firebase Pod

Linker command failed with exit code 1 after installing CocoaPods and firebase pod

I got stuck for awhile trying to solve this, but the solution turned out to be very easy :)

If you are using Cocoapods in your project, one needs to use xcworkspace to build instead of xcproject.
If you are using Cocoapods and build from  xcproject , it will ignore the Cocoapods libraries you need.

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

Probably you've already check if you've open the .xcworkspace created in your project folder.(NOT .xcodeproj)

If still doesn't work try

  • Go to Project Settings.
  • Go to Build Settings.
  • Change BUILD ACTIVE
  • ARCHITECTURE ONLY to NO.

Linker command failed with exit code 1 -- Firebase

Make sure you're opening the .xcworkspace and not the .xcproject file in Xcode. Close the project and open .xcworkspace

swift linker command failed with exit code 1 Google Maps iOS Util pod install

This solution worked for me. There is no need for this portion in the Podfile as well.

pre_install do |installer|
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end

I also had to delete the framework the binary search path in Build Phases.

Cocoapod - Linker command failed with exit code 1 (use -v to see invocation)

If you have successfull pod install then you just use clean-> Build -> Run.

if not work just delete derived data from Xcode Prefence then restart Xcode.



Related Topics



Leave a reply



Submit