作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 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 文件夹中。我正在使用 rpetrich 的 github 中的 iPhone header 。
终端:
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$
最佳答案
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
关于theos - IOTypes 错误 OSTypes 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26693827/
我正在使用专用框架(IOKit),但现在却收到此错误。 Lexical or Preprocessor issues - IOKit/IOTypes.h file not found 请帮忙 最佳答案
我正在使用 Theos,当我使用 Make Package 时,出现错误: In file included from /Users/jordan/welcomer/theos/include/IOK
我是一名优秀的程序员,十分优秀!