ld:找不到 -lIOKit.A clang xcode 的库 [英] ld: library not found for -lIOKit.A clang xcode
问题描述
我使用项目的 Target 部分将 libIOKit.A.dylib 库包含到我的 Xcode 项目中,如下图所示.该项目已构建并运行良好,我在编译状态下遇到一些有线错误说
I included libIOKit.A.dylib library to my Xcode project using Target section of the project as shown in the below image. The project was built and worked fine and I'm getting some wired error in the compiling state saying
ld:未找到 -lIOKit.A 的库.clang:错误:链接器命令失败,退出代码 1(使用 -v 查看调用)
ld: library not found for -lIOKit.A clang: error: linker command failed with exit code 1 (use -v to see invocation)
有人能帮我解决这个问题吗?
Can anyone help me on this matter?
推荐答案
为模拟器构建的私有框架 IOKit 不存在,因此无法在那里工作.此库仅适用于 iPad 或 iPhone.
The private framework IOKit built for the Simulator doesn’t exist, so it won’t work there. This library just work on iPad or iPhone.
这篇关于ld:找不到 -lIOKit.A clang xcode 的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!