美文网首页
iOS编译失败ld: symbol(s) not found f

iOS编译失败ld: symbol(s) not found f

作者: 心淡然如水 | 来源:发表于2016-11-28 19:32 被阅读447次

    编辑时报错:

    Undefined symbols for architecture x86_64:

    "_OBJC_CLASS_$_AFHTTPSessionManager", referenced from:

    _OBJC_CLASS_$_HttpClient in HttpClient.o

    "_OBJC_CLASS_$_AFSecurityPolicy", referenced from:

    objc-class-ref in HttpClient.o

    "_OBJC_CLASS_$_SSKeychain", referenced from:

    objc-class-ref in UserManager.o

    "_OBJC_METACLASS_$_AFHTTPSessionManager", referenced from:

    _OBJC_METACLASS_$_HttpClient in HttpClient.o

    ld: symbol(s) not found for architecture x86_64

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

    问题已得到解决,解决方法如下:~/Library/Developer/Xcode/DerivedData 关掉xcode,删掉DerivedData这个文件夹里的全部东西 然后重新打开项目clean>build

    相关文章

      网友评论

          本文标题:iOS编译失败ld: symbol(s) not found f

          本文链接:https://www.haomeiwen.com/subject/xmgopttx.html