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

Linking error when using make package #700

Open
Janisbtw opened this issue Feb 7, 2023 · 2 comments
Open

Linking error when using make package #700

Janisbtw opened this issue Feb 7, 2023 · 2 comments

Comments

@Janisbtw
Copy link

Janisbtw commented Feb 7, 2023

What are the steps to reproduce this issue?

  1. Create a new project by using $THEOS/bin/nic.pl with iphone/jailed [9]
  2. cd into the new project
  3. run make package

What happens?

The process fails to build the app

What were you expecting to happen?

The build succeeding

Any logs, error output, etc?

make package
==> Notice: Build may be slow as Theos isn’t using all available CPU cores on this computer. Consider upgrading GNU Make: https://theos.dev/docs/parallel-building
> Making all for tweak test…
==> Preprocessing Tweak.xm…
==> Compiling Tweak.xm (armv7)…
==> Linking tweak test (armv7)…
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Users/janis/theos/sdks/iPhoneOS14.5.sdk/System/Library/Frameworks//Foundation.framework/Foundation.tbd' for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/Users/janis/Documents/tweak/test/.theos/obj/debug/armv7/test.dylib] Error 1
make[2]: *** [/Users/janis/Documents/tweak/test/.theos/obj/debug/armv7/test.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [test.all.tweak.variables] Error 2

Any other comments?

I'm using macOS 10.13 in VMware

What versions of software are you using?

Operating System: macOS 10.13

Toolchain Version: Xcode 10.1

SDK Version: ?

@L1ghtmann
Copy link
Member

I don't use OSX, so take this with a grain of salt, but that error typically occurs when there is an SDK-toolchain incompatibility. In this case, I'm guessing that the tapi format used in the 14 sdk may be too new for that toolchain.

I would try either using an older sdk (e.g., 13.7, 12.4, etc) by adjusting your TARGET or updating Xcode.

@Janisbtw
Copy link
Author

Janisbtw commented Feb 9, 2023

I tried setting

TARGET = iphone:11.4

but I still receive this error:

make package
==> Notice: Build may be slow as Theos isn’t using all available CPU cores on this computer. Consider upgrading GNU Make: https://theos.dev/docs/parallel-building
Making all for tweak test…
==> Preprocessing Tweak.xm…
==> Compiling Tweak.xm (armv7)…
==> Linking tweak test (armv7)…
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Users/janis/theos/sdks/iPhoneOS14.5.sdk/usr/lib/libobjc.tbd' for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/Users/janis/Documents/tweak/test/.theos/obj/debug/armv7/test.dylib] Error 1
make[2]: *** [/Users/janis/Documents/tweak/test/.theos/obj/debug/armv7/test.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [test.all.tweak.variables] Error 2

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

2 participants