OGeek|极客世界-中国程序员成长平台

标题: ios - 将 xcode 5.0 更新到 5.1 后出现错误 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 20:01
标题: ios - 将 xcode 5.0 更新到 5.1 后出现错误

我今天已将 xcode 5.0 更新到 5.1。我运行现有的项目,但现在得到错误。在 5.0 版本上运行该项目时我没有遇到任何问题。错误如下:

ld: library not found for -lIOKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)

请人帮忙。

我重新添加了框架,但现在出现另一个错误,低于

ld: 62 duplicate symbols for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)



Best Answer-推荐答案


尝试转到您的项目配置 -> build设置 -> 架构 -> 有效架构

检查您是否复制了 armv7s 标签。

您也可以尝试将 Build Architechtures Only 设置为 YES。

enter image description here

关于ios - 将 xcode 5.0 更新到 5.1 后出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22348441/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4