theos环境配置好后输入make命令出现如下问题,求大神赐教:
libsubstrate.dylib更换了吗?
换了但还是出现这样的提示:
/Applications/Xcode6.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/machine/signal.h:34:2: error:
architecture not supported
#error architecture not supported
还有一个提示是:
/Applications/Xcode6.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/libkern/OSByteOrder.h:45:10: fatal error:
‘libkern/machine/OSByteOrder.h’ file not found
#include <libkern/machine/OSByteOrder.h>
^
8 errors generated.
Preprocessing Tweak.xm…
Compiling Tweak.xm…
Tweak.xm:10:10: fatal error: ‘substrate.h’ file not found
#include <substrate.h>
^
1 error generated.
make[2]: *** [obj/Tweak.xm.af2703fe.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [AnywhereTweak.all.tweak.variables] Error 2
你的substrate.h放在哪里了?
substrate.h这个提示处理了 architecture not supported 未处理
otool -h /path/to/libsubstrate.dylib
,看看你的lib有没有问题
一样的问题,打印出来是这个:
otool -h /opt/theos/lib/libsubstrate.dylib
/opt/theos/lib/libsubstrate.dylib (architecture armv6):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
0xfeedface 12 6 0x00 6 15 1400 0x00110085
/opt/theos/lib/libsubstrate.dylib (architecture armv7):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
0xfeedface 12 9 0x00 6 15 1400 0x00110085
/opt/theos/lib/libsubstrate.dylib (architecture arm64):
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
0xfeedfacf 16777228 0 0x00 6 17 1624 0x00110085
会不会是iOS8.1的兼容问题?
我也有这个问题
执行otool -h /opt/theos/lib/libsubstrate.dylib命令
打印出来的跟一样的信息
也是XCode6.1
我的错误是这几个,不知道咋办了
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/machine/_mcontext.h:31:2: error:
architecture not supported
#error architecture not supported
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/libkern/OSByteOrder.h:45:10: fatal error:
‘libkern/machine/OSByteOrder.h’ file not found
#include <libkern/machine/OSByteOrder.h>
^
8 errors generated.
Linking tweak revealTest…
Undefined symbols for architecture armv7:
"OBJC_CLASS$UIAlertView", referenced from:
objc-class-ref in Tweak.xm.d9066667.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/revealTest.dylib.ba964c90.unsigned] Error 1
make[1]: *** [internal-library-all] Error 2
make: *** [revealTest.all.tweak.variables] Error 2
老大有没有空帮忙看一下呗
请问一下这个提示如何处理呢,我也碰到这个问题了,能和我讲一下吗,谢谢
你这是makefile里没导入UIKit
你的错误输出是什么?
恩,这个问题刚刚检查makefile改掉了,然后还有其他两个问题还在
1:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/machine/_mcontext.h:31:2: error:
architecture not supported
#error architecture not supported
2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/libkern/OSByteOrder.h:45:10: fatal error:
‘libkern/machine/OSByteOrder.h’ file not found
#include <libkern/machine/OSByteOrder.h>
^
8 errors generated.
make[2]: Nothing to be done for `internal-library-compile’.
好像是跟楼主一样的问题
你的源文件怎么写的,发出来看看
‘substrate.h’ file not found
请问下这个问题你是怎么解决的呢,我下载一个项目 编译就给我报这个错