Open atrt7 opened 3 years ago
probably has something to do with @available only working on macOS (sigh...), there is a possible fix for it here: https://github.com/theos/theos/issues/380
I should invest in a Mac lol
Making all for framework AltList… ==> Copying resource directories into the framework wrapper… ==> Copying public headers into the framework wrapper… ==> Preprocessing AltList.x… ==> Compiling AltList.x (armv7)… In file included from
:1: /Users/azozzalfiras/opt/theos//Prefix.pch:11:11: fatal error: 'Foundation/Foundation.h' file not found import <Foundation/Foundation.h>
^
~~~~~~~~ /Users/azozzalfiras/opt/theos//Prefix.pch:11:11: note: did not find header 'Foundation.h' in framework 'Foundation' (loaded from '/System/Library/Frameworks') 1 error generated.
Making all for framework AltList… ==> Copying resource directories into the framework wrapper… ==> Copying public headers into the framework wrapper… ==> Preprocessing AltList.x… ==> Compiling AltList.x (armv7)… In file included from :1: /Users/azozzalfiras/opt/theos//Prefix.pch:11:11: fatal error: 'Foundation/Foundation.h' file not found
import <Foundation/Foundation.h>
^
~~~~~~~~ /Users/azozzalfiras/opt/theos//Prefix.pch:11:11: note: did not find header 'Foundation.h' in framework 'Foundation' (loaded from '/System/Library/Frameworks') 1 error generated.
make sure you have a 13.0 sdk in $THEOS/sdks or change the sdk used here https://github.com/opa334/AltList/blob/main/Makefile#L3
I fixed the compilation issues by doing #import <Foundation/Foundation.h> in some files. now I get a linker error