0

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 を確認できません)。

したがって、クリーンアップしてビルドすると、同じエラーが発生します。

何を与える?

4

0 に答える 0