Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker Error #21

Open
atrt7 opened this issue May 29, 2021 · 4 comments
Open

Linker Error #21

atrt7 opened this issue May 29, 2021 · 4 comments

Comments

@atrt7
Copy link

atrt7 commented May 29, 2021

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
Copy link
Owner

opa334 commented May 29, 2021

probably has something to do with @available only working on macOS (sigh...), there is a possible fix for it here: theos/theos#380

@atrt7
Copy link
Author

atrt7 commented May 29, 2021

I should invest in a Mac lol

@AzozzALFiras
Copy link

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
Copy link
Owner

opa334 commented Jun 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants