问题
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
回答1:
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.. :)
来源:https://stackoverflow.com/questions/37873206/how-to-solve-linker-command-failed-with-exit-code-1-use-v-to-see-invocation