IOTypes错误找不到OSType

时间:2014-11-01 22:17:48

标签: theos

我正在使用Theos,当我使用Make Package时,我收到错误:

In file included from /Users/jordan/welcomer/theos/include/IOKit/IOKitLib.h:49:
/Users/jordan/welcomer/theos/include/IOKit/IOTypes.h:56:10: fatal error: 
      'libkern/OSTypes.h' file not found
#include <libkern/OSTypes.h>
     ^
1 error generated.
make[2]: *** [obj/Tweak.xm.fe4c9a81.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Welcomer.all.tweak.variables] Error 2

我检查过,文件OSTypes.h确实存在于libkern文件夹中。我正在使用他的github上的rpetrich的iPhone标题。

终端:

Jordans-MacBook-Pro:welcomer jordan$ make package
/Users/jordan/welcomer/theos/makefiles/targets/Darwin/iphone.mk:41: Deploying to iOS 3.0 while       building for 6.0 will generate armv7-only binaries.
Making all for tweak Welcomer...
 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
In file included from <built-in>:184:
In file included from <command line>:3:
In file included from /Users/jordan/welcomer/theos/Prefix.pch:4:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:13:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h:11:
In file included from /Users/jordan/welcomer/theos/include/UIKit/UISwipeGestureRecognizer.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISwipeGestureRecognizer.h:9:
In file included from /Users/jordan/welcomer/theos/include/UIKit/UIGestureRecognizer.h:6:
In file included from /Users/jordan/welcomer/theos/include/UIKit/UIKit-Structs.h:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:30:
In file included from /Users/jordan/welcomer/theos/include/QuartzCore/CAValueFunction.h:9:
In file included from /Users/jordan/welcomer/theos/include/QuartzCore/QuartzCore-Structs.h:11:
In file included from /Users/jordan/welcomer/theos/include/IOSurface/IOSurface.h:20:
In file included from /Users/jordan/welcomer/theos/include/IOSurface/IOSurfaceAPI.h:12:
In file included from /Users/jordan/welcomer/theos/include/IOKit/IOKitLib.h:49:
/Users/jordan/welcomer/theos/include/IOKit/IOTypes.h:56:10: fatal error: 
      'libkern/OSTypes.h' file not found
#include <libkern/OSTypes.h>
         ^
1 error generated.
make[2]: *** [obj/Tweak.xm.fe4c9a81.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [Welcomer.all.tweak.variables] Error 2
Jordans-MacBook-Pro:welcomer jordan$ 

1 个答案:

答案 0 :(得分:2)

iPhoneOS.sdk中缺少OSTypes.h,我从iPhoneSimulator.sdk中复制了它,如下所示:

sudo cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/libkern/OSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/libkern