Jump to content

Theos compiling error


ubyt3x

5 posts in this topic

Recommended Posts

Posted

I have both the 10.3 & 12.2 (from https://github.com/DavidSkrundz/sdks) SDK's located inside the sdks folder.

When running make package (install), I get this error that exits the compiling:

clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/untispremiumhack/.theos/obj/arm64/UntisPremiumHack.dylib] Error 1
rm /var/root/untispremiumhack/.theos/obj/arm64/Tweak.xm.mm
make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/untispremiumhack/.theos/obj/arm64/UntisPremiumHack.dylib] Error 2
make[1]: *** [/var/theos/makefiles/instance/library.mk:24: internal-library-all_] Error 2
make: *** [/var/theos/makefiles/master/rules.mk:111: UntisPremiumHack.all.tweak.variables] Error 2

RGC7IO5.png

 

My Makefile:

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
#THEOS_PACKAGE_DIR_NAME = debs
PACKAGE_BUILDNAME = iOSGods.com
#DEBUG = 0
FINALPACKAGE = 1
FOR_RELEASE = 1
#GO_EASY_ON_ME = 1

include $(THEOS)/makefiles/common.mk

TWEAK_NAME = UntisPremiumHack
UntisPremiumHack_FILES = Tweak.xm
UntisPremiumHack_FRAMEWORKS = UIKit
UntisPremiumHack_LDFLAGS += -Wl,-segalign,4000

include $(THEOS_MAKE_PATH)/tweak.mk


SUBPROJECTS += UntisPremiumHackSettings # To compile your project as a Tweak only, comment out or remove this line.include $(THEOS_MAKE_PATH)/aggregate.mk

 

I'm using the iOSGods template, but the error is also there with the default tweak template.

Any help is appreciated, as I'm new into theos.

Posted

Removed it, thanks. But now I'm stuck with this:

make package
> Making all for tweak UntisPro
==> Linking tweak UntisPro (arm64)…
ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libobjc.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libobjc.tbd  
ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Foundation.framework/Foundation.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Foundation.framework/Foundation.tbd
ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd
ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//UIKit.framework/UIKit.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//UIKit.framework/UIKit.tbd
ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libc++.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libc++.tbd    
ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libSystem.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Security.framework/Security.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Security.framework/Security.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Metal.framework/Metal.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Metal.framework/Metal.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CFNetwork.framework/CFNetwork.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CFNetwork.framework/CFNetwork.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//IOSurface.framework/IOSurface.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//IOSurface.framework/IOSurface.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreVideo.framework/CoreVideo.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreVideo.framework/CoreVideo.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//FileProvider.framework/FileProvider.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//FileProvider.framework/FileProvider.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreImage.framework/CoreImage.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreImage.framework/CoreImage.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreGraphics.framework/CoreGraphics.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreGraphics.framework/CoreGraphics.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//OpenGLES.framework/OpenGLES.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//OpenGLES.framework/OpenGLES.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//QuartzCore.framework/QuartzCore.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//QuartzCore.framework/QuartzCore.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreText.framework/CoreText.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreText.framework/CoreText.tbd
ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//ImageIO.framework/ImageIO.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//ImageIO.framework/ImageIO.tbd
Undefined symbols for architecture arm64:
  "_CFNotificationCenterAddObserver", referenced from:
      subscribeToLaunchEvent() in Tweak.xm.44da8f9b.o
      initialize() in Tweak.xm.44da8f9b.o
  "_CFNotificationCenterGetLocalCenter", referenced from:
      subscribeToLaunchEvent() in Tweak.xm.44da8f9b.o
      didFinishLaunching(__CFNotificationCenter*, void*, __CFString const*, void const*, __CFDictionary const*) in Tweak.xm.44da8f9b.o
      unsubscribeToLaunchEvent() in Tweak.xm.44da8f9b.o
      initialize() in Tweak.xm.44da8f9b.o
  "_CFNotificationCenterRemoveObserver", referenced from:
      didFinishLaunching(__CFNotificationCenter*, void*, __CFString const*, void const*, __CFDictionary const*) in Tweak.xm.44da8f9b.o
      unsubscribeToLaunchEvent() in Tweak.xm.44da8f9b.o
  "_OBJC_CLASS_$_NSURL", referenced from:
      objc-class-ref in Tweak.xm.44da8f9b.o
  "_OBJC_CLASS_$_UIAlertAction", referenced from:
      objc-class-ref in Tweak.xm.44da8f9b.o
  "_OBJC_CLASS_$_UIAlertController", referenced from:
      objc-class-ref in Tweak.xm.44da8f9b.o
  "_OBJC_CLASS_$_UIApplication", referenced from:
      objc-class-ref in Tweak.xm.44da8f9b.o
  "_UIApplicationDidFinishLaunchingNotification", referenced from:
      subscribeToLaunchEvent() in Tweak.xm.44da8f9b.o
      didFinishLaunching(__CFNotificationCenter*, void*, __CFString const*, void const*, __CFDictionary const*) in Tweak.xm.44da8f9b.o
      unsubscribeToLaunchEvent() in Tweak.xm.44da8f9b.o
      initialize() in Tweak.xm.44da8f9b.o
  "__NSConcreteGlobalBlock", referenced from:
      ___block_literal_global in Tweak.xm.44da8f9b.o
      ___block_literal_global.19 in Tweak.xm.44da8f9b.o
      ___block_literal_global.27 in Tweak.xm.44da8f9b.o
      ___block_literal_global.29 in Tweak.xm.44da8f9b.o
  "___CFConstantStringClassReference", referenced from:
      CFString in Tweak.xm.44da8f9b.o
      CFString in Tweak.xm.44da8f9b.o
      CFString in Tweak.xm.44da8f9b.o
      CFString in Tweak.xm.44da8f9b.o
      CFString in Tweak.xm.44da8f9b.o
      CFString in Tweak.xm.44da8f9b.o
      CFString in Tweak.xm.44da8f9b.o
      ...
  "___NSDictionary0__", referenced from:
      ____Z5setupv_block_invoke in Tweak.xm.44da8f9b.o
      ____Z5setupv_block_invoke_3 in Tweak.xm.44da8f9b.o
  "__dyld_get_image_header", referenced from:
      hasASLR() in Tweak.xm.44da8f9b.o
      calculateAddress(long long) in Tweak.xm.44da8f9b.o
  "__dyld_get_image_vmaddr_slide", referenced from:
      get_slide() in Tweak.xm.44da8f9b.o
      calculateAddress(long long) in Tweak.xm.44da8f9b.o
  "_mach_task_self_", referenced from:
      vm_writeData(long long, unsigned int) in Tweak.xm.44da8f9b.o
  "_objc_getClass", referenced from:
      _logosLocalInit() in Tweak.xm.44da8f9b.o
  "_objc_msgSend", referenced from:
      setup() in Tweak.xm.44da8f9b.o
      ____Z5setupv_block_invoke in Tweak.xm.44da8f9b.o
      ____Z5setupv_block_invoke_3 in Tweak.xm.44da8f9b.o
  "_vm_protect", referenced from:
      vm_writeData(long long, unsigned int) in Tweak.xm.44da8f9b.o
  "_vm_write", referenced from:
      vm_writeData(long long, unsigned int) in Tweak.xm.44da8f9b.o
ld: symbol(s) not found for architecture arm64
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/tweaks/untispro/.theos/obj/arm64/UntisPro.dylib] Error 1
make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/tweaks/untispro/.theos/obj/arm64/UntisPro.dylib] Error 2
make[1]: *** [/var/theos/makefiles/instance/library.mk:24: internal-library-all_] Error 2
make: *** [/var/theos/makefiles/master/rules.mk:111: UntisPro.all.tweak.variables] Error 2

 

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines