objective-c - ld : library not found for -lIOKit. clang xcode

标签 objective-c xcode

我使用项目的目标部分将 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)

谁能帮我解决这个问题?

enter image description here

最佳答案

为模拟器构建的私有(private)框架 IOKit 不存在,所以它不会在那里工作。此库仅适用于 iPad 或 iPhone。

关于objective-c - ld : library not found for -lIOKit. clang xcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15383197/

相关文章:

ios - 我应该在 viewDidLayoutSubviews() 中调用 layoutIfNeeded

ios - Xcode 永远显示新项目的索引

objective-c - 将击键发送到 shell 应用程序?

objective-c - 具有多个 sqlite 文件的核心数据

ios - 'GADUNativeCustomTemplateAd' 错误没有可见的@interface

从xib加载时iOS黑屏

Xcode 和预处理器##

iphone - 从电话功能 iPhone 应用程序中排除 iPod Touch

ios - 在关闭 View 之前调用委托(delegate)方法

iphone - 确定 segue 是否为 unwind segue?