error: linker command failed with exit code 1 (use -v to see invocation)

时间:2021-07-14 10:45:13

error: linker command failed with exit code 1 (use -v to see invocation)

今天在编译的时候遇到的,这个问题第一次遇到,感觉无从下手,之后查看了代码,发现错误是导入头文件时,误导入了.m文件,之后改为.h文件后就正常,希望有相同问题的小伙伴可以借鉴一下。

##error: linker command failed with exit code 1 (use -v to see invocation)