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
Show Am/Pm in Capitals in Swift
How to Add Alamofire Url Parameters
How to Create a Generic Array Extension That Sums Number Types in Swift
Using as a Concrete Type Conforming to Protocol Anyobject Is Not Supported
How to Check If Time Is Within a Specific Range in Swift
How to Find the Number of Days in Given Month and Year Using Swift
Difference Between 2 Dates in Weeks and Days Using Swift 3 and Xcode 8
Simple Way to Read Local File Using Swift
Lazy Initialisation and Retain Cycle
Xcode 7.3/Swift 2: "No Method Declared with Objective-C Selector" Warning
How to Create an Instance of a Class from a String in Swift
What Versions of Swift Are Supported by What Versions of Xcode
Understanding Swift 2.2 Selector Syntax - #Selector()
Uitableview Load More When Scrolling to Bottom
Uploading Image to Firebase Storage and Database