Harry Saggu Harry Saggu - 5 months ago 33
Swift Question

How to solve linker command failed with exit code 1 (use -v to see invocation)

i am getting this error when i am performing archive for my app.
linker command failed with exit code 1 (use -v to see invocation)
can any one help me to solve this.

Thanks

Answer

So many different problems for the same error message.

1) if you had two same constants in different classes then also this issue happens.

2) if you have accidently imported a .m file instead of .h file in an implementation file.

3) This error can also be occurred if you have imported two different versions of same library ,in this case just remove the older version and keep only one version.

4) Adding the "other linker flags" in "Project" and not in "Targets". So, you move it to "Targets", it shouldn't be in "Project".

check out this .. if it's OK then once do like following.

Menu > Product > Clean ... then Run the project

Hope it helps you.. :)