解决办法,打开终端:
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/IOKit.framework
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的方法:点项目工程framework下的加号->Add Other->快捷找到Xcode安装目录下的framework,加入即可
快捷键:Shift + Command + G
注意:如果要打包,请把该framework copy到本地目录下。