Harry Saggu
Harry Saggu

Reputation: 47

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

Upvotes: 0

Views: 886

Answers (1)

TheHungryCub
TheHungryCub

Reputation: 1970

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".

5) Check it out in project->target->build settings-> search enable bitcode->set NO in DEBUG

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

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

Hope it helps you.. :)

Upvotes: 2

Related Questions