SettingsKit icon indicating copy to clipboard operation
SettingsKit copied to clipboard

Both sdk8.1 sdk9.2 OSX10.10.5 #error architecture not supported

Open haoerloveyou opened this issue 9 years ago • 5 comments

My Theos(OS X) works well in other project but it can't Compiling SettingKit

the error is

cdefs.h _types.h boolean.h vm_types.h kern_return.h types.h endian.h limits.h signal.h _mcontext _param.h _param.h

both headers have the same error error: architecture not supported

error architecture not supported

^ 11 errors generated.

All of my tweaks is base on SettingKit please help me! :(

An interesting thing. The same SDKs and Headers works well in iOS both iOS8~iOS9 in JB iDevice

in JB iDevice I can Compiling SettingKit but in Mac I can't .

haoerloveyou avatar Feb 24 '16 10:02 haoerloveyou

This is often due to bad headers. Make sure you're using rpetrich's or hashbang's headers. Also, you could check here and here for similar issues with (at least partial) solutions.

efrederickson avatar Feb 24 '16 17:02 efrederickson

happy to see u in a short time :) I try it new

haoerloveyou avatar Feb 24 '16 17:02 haoerloveyou

I am back , I speed two hour to reinstall theos from rpetrich. and also clone header from rpetrich.but the essue is still. the wrong become error:

ARC forbids Objective-C objects in struct id _field3;

just like this https://github.com/mlnlover11/SettingsKit/issues/10

and I do this in makefile

#CFLAGS = -fobjc-arc

after that it can compiling

I don't know whether I can fix the problem like this

haoerloveyou avatar Feb 24 '16 19:02 haoerloveyou

You need to manually patch or remove those structs - they are auto-generated anyway; I found they were not even referenced (initially in my set of headers anyway).

efrederickson avatar Feb 24 '16 19:02 efrederickson

it's time to 3:53 AM thank your for giving me help and glad to meet U again ;) zzzz

haoerloveyou avatar Feb 24 '16 19:02 haoerloveyou