未找到 IOKit [英] IOKit Not found
问题描述
所以一切都很好,然后我决定开始在 XCode 5 DP3 和 iOS7 上开发
So everything was fine, and then I decided to start developing on XCode 5 DP3 and iOS7
在升级之前,我的项目在我的 iPhone 3GS 上编译并运行良好(我做了一个小软电话应用程序);然而,它没有在我的 iPhone 5 上运行;我非常有信心,因为我还没有将它配置为包含 armv7s 架构.
Prior to upgrading, my project compiled and ran fine on my iPhone 3GS (I made a little soft phone application); it didn't run on my iPhone 5, however; I was very confident that it was the fact that I hadn't configured it to include the armv7s architecture yet.
我可以在模拟器上很好地构建和运行所有东西,但是(这是在配置应用程序以包含 armv7s 架构之后)我无法让它在我的任一设备上运行.
I can build and run everything just fine on the simulators, but (and this is after configuring the app to include the armv7s architecture) I can't get it to run on either my devices.
我收到此错误:
ld: framework not found IOKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我什至不确定如何使用 -v 来查看调用.我读了一些 IOKit 仅用于模拟器的地方……这是否意味着在我的设备上构建时我应该将它从我的库中取消链接?为什么我之前在我的 3gs 上工作时没有收到这个错误?
I'm not even sure how one uses -v to see invocation. I read some where that IOKit is just for the simulator... does this mean that I should unlink it from my library when building on my device? And why wasn't I getting this error before when it was working on my 3gs?
我对为什么它不再适用于我的 3gs 的假设(尽管错误是相同的)是因为它是 iOS 6,并且 SDK 可能只支持 iOS 7(我的 iPhone 5 目前是).
My assumption for why it no longer works on my 3gs (although the error is the same), is the fact that it's iOS 6, and the SDK may only support iOS 7 (which my iPhone 5 currently is).
推荐答案
在 Apple 发布修复程序之前最好这样做.
Best thing to do is this until Apple issues a fix.
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/IOKit.framework
sudo ln -s Versions/A/IOKit .
这篇关于未找到 IOKit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!