Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10 Beta 5 — clang: error: linker command failed with exit code 1

Can anybody help me out? Everything worked fine on my project but after updating to Xcode10 Beta5 I'm getting this error when trying to run the App on my iPhone. Simulator however works… Please Help me!!!

enter image description here

I already did a web search on this problem and found this thread. I tried all answers but none worked..

If you had this problem I would be very very thankful if you can help me running my app on my iPhone again

These are the pods I've integrated: enter image description here

and this is my pod file: enter image description here

like image 345
Luke Pistrol Avatar asked Jul 31 '18 18:07

Luke Pistrol


People also ask

How do I fix clang error linker command failed with exit code 1?

My iOS builds fail with "clang: error: linker command failed with exit code 1" Clang! The error could be caused by App Center building with the xcodeproj instead of the workspace. When adding CocoaPods to your project, you must switch to using the workspace when building in App Center.

What does clang error mean?

First you get the error because the compiler can not find the definition of the power function that you are using. Even if you write int power(int m, int n); There is an error because you are not defining the function.


2 Answers

Go to Pods folder in the Project :

Pods/Pods-[Project].xcconfig

and remove the libaray

enter image description here

like image 129
iosMentalist Avatar answered Sep 28 '22 04:09

iosMentalist


"libstdc++.6.0.9.tbd" is deprecated in iOS 12. In order to solve this, try to go to your

App Targets - General -> Linked Frameworks and Libraries -> Find libstdc++.6.0.9.tbd and delete it.

Then I added "libc++.tbd" and now you will be able to compile your project. Hope It helps.

like image 38
Nacho González Miró Avatar answered Sep 28 '22 03:09

Nacho González Miró