opa334 / AltList

A modern AppList alternative
MIT License
104 stars 26 forks source link

Linker Error #21

Open atrt7 opened 3 years ago

atrt7 commented 3 years ago

I fixed the compilation issues by doing #import <Foundation/Foundation.h> in some files. now I get a linker error


Undefined symbols for architecture armv7:
  "___isOSVersionAtLeast", referenced from:
      -[ATLApplicationListControllerBase _setUpSearchBar] in ATLApplicationListControllerBase.m.ee6620ba.o
      -[ATLApplicationSubtitleCell initWithStyle:reuseIdentifier:specifier:] in ATLApplicationSubtitleCell.m.ee6620ba.o
ld: symbol(s) not found for architecture armv7
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/home/atrt7/theos/makefiles/instance/framework.mk:36: /home/atrt7/AltList/.theos/obj/armv7/AltList.framework/AltList] Error 1
rm /home/atrt7/AltList/.theos/obj/armv7/AltList.x.m
make[2]: *** [/home/atrt7/theos/makefiles/instance/framework.mk:36: /home/atrt7/AltList/.theos/obj/armv7/AltList.framework/AltList] Error 2
make[2]: *** Waiting for unfinished jobs....
==> Linking framework AltList (arm64)…
==> Generating debug symbols for AltList…
==> Stripping AltList (arm64)…
rm /home/atrt7/AltList/.theos/obj/arm64/AltList.x.m
make[1]: *** [/home/atrt7/theos/makefiles/instance/framework.mk:27: internal-framework-all_] Error 2
make: *** [/home/atrt7/theos/makefiles/master/rules.mk:117: AltList.all.framework.variables] Error 2```
opa334 commented 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

atrt7 commented 3 years ago

I should invest in a Mac lol

AzozzALFiras commented 3 years ago

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.

opa334 commented 3 years ago

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