Showing Recent Issues clang: error: linker command failed with exit code 1 (use -v to see invocation)?
Try to open project.xcworkspace
instead of project.xcodeproj
.
Note: Press
Command + Q
to exit xcode. And open
yourfile.xcworkspace
.
clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 10.2.1
Follow these steps to find a solution.
From the logs I have posted above one thing is clear that the problem in my case was with Notification Content & Notification Service Extension targets
So following This Link based on -L or -R flag you are getting in the logs,
Delete the paths added for Library Search Path or Framework Search Paths as may be required.
For my case I had to do this for Notification Service & Notification Content Extension targets
This may cause more error where you might start getting errors for other framework or search path for same target (which was the case with me),
If such thing happen for any Target then try to delete the Other Linker Flags for the targets you are getting the error.
In my case deleting the Library Search Path & Framework Search Paths as well as Other Linker Flags Did the trick for me.
Showing Recent Issues clang: error: linker command failed with exit code 1 (use -v to see invocation)?
Try to open project.xcworkspace
instead of project.xcodeproj
.
Note: Press
Command + Q
to exit xcode. And open
yourfile.xcworkspace
.
Related Topics
Retrieve Multiple Photos Under a Node from Firebase Storage
How to Demonstrate a Zombie Object in Swift
Getting a Let Value Outside a Function
Executing Text-To-Speech in Order
How to Declare Swift Implicitly Unwrapped Optional as a Constant
For Loop for Dictionary Don't Follow It's Order in Swift
Swift Performseguewithidentifier Shows Black Screen
Singleton and Init with Parameter
Scenedidload Being Called Twice
Add Skreferencenode/Skscene to Another Skscene in Spritekit
How to Cast a Uint64 to an Int64
Nsimage Getting Resized When I Draw Text on It
Why Does Int(Float(Int.Max)) Give Me an Error
Animating a Navigation Bar Color
Unable to Save On/Off State of a Uitableviewcell
How Do Generators Whose Element Is Optional Know When They'Ve Reached the End