我使用项目的目标部分将 libIOKit.A.dylib 库包含到我的 Xcode 项目中,如下图所示。该项目已构建并运行良好,但我在编译状态下遇到一些有线错误
ld: library not found for -lIOKit.A clang: error: linker command failed with exit code 1 (use -v to see invocation)
谁能帮我解决这个问题?
最佳答案
为模拟器构建的私有(private)框架 IOKit 不存在,所以它不会在那里工作。此库仅适用于 iPad 或 iPhone。
关于objective-c - ld : library not found for -lIOKit. clang xcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15383197/