我只是尝试为 iPhone 编译我的 xcode 项目(使用 Phonegap)。
编译失败,但出现以下消息:
In file included from
/Users
/mobile
/Documents
/dev
/mobile
/ios
/TOMO
/xcode
/TOMO
/MyProject.de-Prefix.pch:25
(#import <UIKit/UIKit.h>):
In file included from
/Applications
/Xcode.app
/Contents
/Developer
/Platforms
/iPhoneOS.platform
/Developer
/SDKs
/iPhoneOS6.1.sdk
/System
/Library
/Frameworks
/UIKit.framework
/Headers
/UIKit.h:10
(#import <UIKit/UIAccessibility.h>):
In file included from
/Applications
/Xcode.app
/Contents
/Developer
/Platforms
/iPhoneOS.platform
/Developer
/SDKs
/iPhoneOS6.1.sdk
/System
/Library
/Frameworks
/UIKit.framework
/Headers
/UIAccessibility.h:8
(#import <CoreGraphics/CoreGraphics.h>):
In file included from
/System
/Library
/Frameworks
/ApplicationServices.framework
/Versions
/A
/Frameworks
/CoreGraphics.framework
/Headers
/CoreGraphics.h:41
(#include <CoreGraphics/CGDisplayConfiguration.h>):
/System
/Library
/Frameworks
/ApplicationServices.framework
/Versions
/A
/Frameworks
/CoreGraphics.framework
/Headers
/CGDisplayConfiguration.h:8:10: fatal error: 'IOKit/IOKitLib.h' file not found
#include <IOKit/IOKitLib.h>
^
1 error generated.
因此,显然 UIKit.framework 和 CoreGraphics.framework 都需要 IOKit,所以我将 IOKit.framework 作为链接二进制文件添加到:
Project->Build Phases->Link Binary with Libraries
它肯定存在(我在项目导航器中看不到 IOKit.framework)。
所以,我清理并构建并得到同样的错误。
是什么赋予了?