升级到xcode6.3.2后sdk变为8.3。之前sdk8.1的项目无法编译通过了。

升级到xcode6.3.2后sdk变为8.3。8.1sdk没有了。之前sdk8.1的项目无法编译通过。。

makefile改为:
ARCHS = armv7 arm64
TARGET = iphone:clang:8.3:6.0

编译时还是报:
architecture not supported
这个错。。

具体错误:
/Applications/Xcode.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

你看看这个文件夹存在吗?

存在的,不好意思,这个报错是我把以前的8.1的sdk目录放过去后,改成:
TARGET = iphone:clang:8.1:6.0
报的。

就报这一系列的error:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/machine/signal.h:34:2: 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>

但是tweak却编译成功了,放到iphone5里可以正常运行。。会不会其他设备会不正常。。

那就不用管了

did u used Theos ? I solved this problem by reinstalling Theos from Terminal and made these changes in makefile :
ARCHS = armv7 arm64
SDKVERSION = 7.1

because Prefrences framework not work properly on iOS 8 SDK . and the compiler think that we are not compiling for ARM .

1 个赞