error:

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

XMPP--- error :  linker command failed with exit code 1-LMLPHP

错误原因:libidn.a文件没添加上去

解决方法:libidn.a文件删除重新添加

第一步:删除libidn.a文件

XMPP--- error :  linker command failed with exit code 1-LMLPHP

第二步:添加libidn.a文件

XMPP--- error :  linker command failed with exit code 1-LMLPHP

XMPP--- error :  linker command failed with exit code 1-LMLPHP

XMPP--- error :  linker command failed with exit code 1-LMLPHP

在Finder中找到libidn.a文件

XMPP--- error :  linker command failed with exit code 1-LMLPHP

打开libidn.a文件

XMPP--- error :  linker command failed with exit code 1-LMLPHP

运行程序,问题就解决了

05-11 02:13