Closed GameFuzzy closed 2 years ago
I’m having this issue too. A version of the script was updated, but I’ve yet to test it out
does it compile if you only target arm64?
I'll try that now.
Got the same error.
it still gives you an error about armv7?
No, error is about the same file but it's for arm64 this time: ld: in '/usr/lib/system/liblaunch.dylib', missing required architecture arm64 in file /usr/lib/system/liblaunch.dylib (2 slices) for architecture arm64
hmmm interesting. what happens if you try targeting x86_64 ?
A bunch of "Unsupported architecture
can you upload a copy of this dylib? i wonder what the 2 architectures are then seems like x86_64 does exist so it probably is x86 and x86_64 then. so then its missing all the arm architectures for some reason
I think it’s from the simulator SDK. think
I would assume so
Here's the dylib anyway: https://www.dropbox.com/s/u8771s5arz1h3j1/liblaunch.dylib?dl=0
Turns out the issue with liblaunch.dylib was that it was referenced as a re-export in libSystem.B.dylib, but the tbd had not been created as it had no exported re-exports or symbols.
To remedy that, I changed the behavior to write out regardless if any exports are available (added the --ignore-missing-exports
option to tbd in the script). But there were issues with that in tbd itself, which I spent the rest of my day fixing.
For the most part at least, I believe I have fixed many issues present in the sdk. But before pushing, I'd like some of you to test it. You can get it here; https://www.dropbox.com/s/x1n9li88y4nrtt5/iPhoneOS11.2.sdk.zip?dl=0
When it's trying to link the preference bundle I'm getting:
Undefined symbols for architecture armv7:
"_OBJC_METACLASS_$_NSObject", referenced from:
_OBJC_METACLASS_$_DRMRootListController in DRMRootListController.m.d6e7ccd2.o
And when it's trying to link the tweak I'm getting:
Undefined symbols for architecture armv7:
"_memset", referenced from:
___cxx_global_var_init.6 in Tweak.xm.67acc22f.o
"_objc_msgSend_stret", referenced from:
___cxx_global_var_init.6 in Tweak.xm.67acc22f.o
ld: symbol(s) not found for architecture armv7
The fixed the issue with the script was fixed we believe, and the updated SDKs will be out soon
I got the same issue with iOS 10.3 sdk ( @GameFuzzy )
I reinstalled theos
and was able to get it working, making it far easier to fix these issues. Anyways,
Looking into the new errors, it turns out that _memset
is re-exported in libSystem.B.dylib
from libsystem_c.dylib
. But it is an N_INDR
symbol, meaning it is indirect and points to another symbol in the same symbol-table.
tbd
does not yet have support for this (I just learned of N_INDR
myself), so while I slowly update tbd for this (which might require a rather large re-factor), I have just removed usr/
from the directories tbd
iterates, leaving it as a plain copy from the iPhoneOS
sdk.
For the _OBJC_CLASS_$_NSObject
and _OBJC_METACLASS_$_NSObject
related errors, it turns the symbols weren't in /usr/lib/libobjc.A.dylib
's tbd, which was the cause of the errors. Digging deeper, I found the problem to lay in tbd
When replacing architectures, tbd
would end up skipping the first symbol in its vector (which in our case was _OBJC_CLASS_$_NSObject
) and only write out the following symbols. I've fixed this issue and it's been pushed to the rewrite
branch along with some other miscellaneous changes.
While I didn't get the _objc_msgSend_stret
related error, doing a quick grep
in the newly generated sdk reveals it to be in /usr/lib/libobjc.A.dylib
's tbd, and after dealing with _OBJC_CLASS_$_NSObject
errors, I would assume it to be fixed as well.
For compatibility reasons, this sdk does not overwrite any existing tbds found when copying in iPhoneOS.sdk
, most likely also "fixing" the two issues above. But if in the future someone wanted to overwrite these existing tbds, my fixes would ensure they would successfully be able to do so as well.
Of course, I want to make sure this is indeed all fixed before pushing, and would appreciate any of you testing this out: https://www.dropbox.com/s/x1n9li88y4nrtt5/iPhoneOS11.2.sdk.zip?dl=0
@inoahdev I tried out your updated sdk (even though I'm on iOS 9.3.3) I got an error Make: xcode-select :command not found
@nullpixel where to get the updated SDKs wherever they are released
The xcode-select thing is now gone I guess, what I did was to go to /var/theos/makefiles/platform/ and rename Darwin-arm.mk to Darwin-arm64.mk /var/theos/makefiles/targets/ and rename Darwin-arm to Darwin-arm64 But after doing this I'm getting this error:
Btw I am on an iPhone not a mac
You’re using a very old version of Theos. Please see https://git.io/theosinstall.
@kirb GitHub is not supporting weak algorithms now so can't pull from my iOS device...
Ah, right, yeah that sucks 😕 saurik is working on it though. Added a warning about that to the wiki page, and there’s a workaround at theos/theos#293.
@kirb Thanks! Good to hear that saurik is working on that. I don't know how to use rsync can you please tell me what options to use?
@kirb I pulled theos from git hub to my pc then rsynced it to /var/theos, but I am still getting the same error... ld: in /usr/bin/system/liblaunch.dylib missing required architecture amrv7 in file /usr/bin/liblaunch.dylib
I used this command for rsync
rsync -rlptDvze ssh --progress /var/theosclone/ root@192.168.0.103:/var/theos
My project compiled using the new sdk.
@GameFuzzy can you give me the link to the new SDK
It's the SDK inoahdev uploaded.
Oh! No, I actually on iOS and using 9.3.3... So yeah...
@inoahdev
I use lastest theos on macos 10.13.3 still have ld: in '/usr/lib/system/liblaunch.dylib', missing required architecture armv7 in file /usr/lib/system/liblaunch.dylib (2 slices) for architecture armv7
with you uploaded sdk
Where can I find these files? So that I'll download and check if it works...
Try putting the SDK here: Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
Still getting the error :/
@shotguntuck I'm assuming this is the liblaunch.dylib
error @ienthach mentioned he got again
The error in the sdk on GitHub is that libSystem.B.dylib
depended on liblaunch.dylib
, which we fixed by removing /usr
from the processed directories, and using Apple's default SDK's. So there should be no dependency on liblaunch.dylib
I may have made a mistake when uploading theSDK? I'm not seeing the error myself so I would assume so.
I've re uploaded the SDK zip, freshly created. Can you see if you're still getting that error? https://www.dropbox.com/s/x1n9li88y4nrtt5/iPhoneOS11.2.sdk.zip?dl=0
Still getting the same error
@shotguntuck can you run
grep -rnw your_sdk_dir_path_here -e "liblaunch.dylib"
and comment the result here?
Of course, replace your_sdk_dir_path_here
with the path to your sdk
@shotguntuck You have to replace "your_sdk_dir_path_here" with the path to your sdk
like so: Laptop:~# grep /opt/theos/sdks -e "liblaunch.dylib" grep: /opt/theos/sdks: Is a directory
@shotguntuck You forgot -rnw
, like so:
grep -rnw /opt/theos/sdks -e "liblaunch.dylib"
ok, this is the result:
Laptop:~# grep -rnw /opt/theos/sdks -e "liblaunch.dylib" /opt/theos/sdks/iPhoneOS10.3.sdk/usr/lib/libSystem.B.tbd:12: /usr/lib/system/libkeymgr.dylib, /usr/lib/system/liblaunch.dylib, /usr/lib/system/libmacho.dylib, /opt/theos/sdks/iPhoneOS10.3.sdk/usr/lib/system/liblaunch.tbd:4:install-name: /usr/lib/system/liblaunch.dylib /opt/theos/sdks/iPhoneOS9.3.sdk/System/Library/Frameworks/System.framework/System.tbd:12: /usr/lib/system/libkeymgr.dylib, /usr/lib/system/liblaunch.dylib, /usr/lib/system/libmacho.dylib, /opt/theos/sdks/iPhoneOS9.3.sdk/usr/lib/libSystem.B.tbd:12: /usr/lib/system/libkeymgr.dylib, /usr/lib/system/liblaunch.dylib, /usr/lib/system/libmacho.dylib,
@shotguntuck Are you sure you're using iPhoneOS11.2 sdk I linked above? It's possible Theos is using either the iPhone9.3 or iPhone10.3 sdk (which I can't fix as I don't have those firmwares).
Add this to your Makefile and see if it compiles and links properly:
SDKVERSION = 11.2
SYSROOT = /opt/theos/sdks/iPhoneOS11.2.sdk
ARCHS = arm64
now I'm getting this gigantic error:
Laptop:/home/Hal0405/test# make package bash: /opt/theos/toolchain/linux/swift/bin/swift: No such file or directory
Making all for tweak test… bash: /opt/theos/toolchain/linux/swift/bin/swift: No such file or directory bash: /opt/theos/toolchain/linux/swift/bin/swift: No such file or directory bash: /opt/theos/toolchain/linux/swift/bin/swift: No such file or directory ==> Preprocessing Tweak.xm… ==> Compiling Tweak.xm (arm64)… While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'CoreFoundation' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: While building module 'Darwin' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16: In file included from
:215: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/pthread.h:1:1: error: unknown type name 'pthread'; did you mean 'pthread_t'? pthread/pthread.h ^ /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/sys/_pthread/_pthread_t.h:31:28: note: 'pthread_t' declared here typedef darwin_pthread_t pthread_t; ^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'CoreFoundation' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: While building module 'Darwin' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16: In file included from :215: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/pthread.h:1:8: error: expected unqualified-id pthread/pthread.h ^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'CoreFoundation' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: While building module 'Darwin' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16: In file included from darwin_pthread_t pthread_t; ^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'CoreFoundation' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: While building module 'Darwin' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16: In file included from:218: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/pthread_impl.h:1:1: error: unknown type name 'pthread'; did you mean 'pthread_t'? pthread/pthread_impl.h ^ /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/sys/_pthread/_pthread_t.h:31:28: note: 'pthread_t' declared here typedef :218: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/pthread_impl.h:1:8: error: expected unqualified-id pthread/pthread_impl.h ^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'CoreFoundation' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: While building module 'Darwin' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16: In file included from :224: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/pthread_spis.h:1:1: error: unknown type name 'pthread'; did you mean 'pthread_t'? pthread/pthread_spis.h ^ /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/sys/_pthread/_pthread_t.h:31:28: note: 'pthread_t' declared here typedef darwin_pthread_t pthread_t; ^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'CoreFoundation' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: While building module 'Darwin' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16: In file included from :224: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/pthread_spis.h:1:8: error: expected unqualified-id pthread/pthread_spis.h ^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'CoreFoundation' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: While building module 'Darwin' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16: In file included from darwin_pthread_t pthread_t; ^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'CoreFoundation' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: While building module 'Darwin' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16: In file included from:236: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/sched.h:1:1: error: unknown type name 'pthread'; did you mean 'pthread_t'? pthread/sched.h ^ /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/sys/_pthread/_pthread_t.h:31:28: note: 'pthread_t' declared here typedef :236: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/sched.h:1:8: error: expected unqualified-id pthread/sched.h ^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'CoreFoundation' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: In file included from :2: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:10: fatal error: could not build module 'Darwin' include <sys/types.h>
While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'CoreFoundation' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: While building module 'Dispatch' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20: In file included from <module-includes>:2: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/dispatch/dispatch.h:25:10: fatal error: could not build module 'Darwin' #include <Availability.h> ~~~~~~~~^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'CoreFoundation' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: While building module 'Dispatch' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20: While building module 'os_object' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/dispatch/dispatch.h:59: In file included from <module-includes>:2: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/os/object.h:25:10: fatal error: could not build module 'Darwin' #include <Availability.h> ~~~~~~~~^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: In file included from <module-includes>:2: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation' #include <CoreFoundation/CoreFoundation.h> ~~~~~~~~^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'ObjectiveC' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6: In file included from <module-includes>:2: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/objc/./NSObjCRuntime.h:8:10: fatal error: could not build module 'Darwin' #include <TargetConditionals.h> ~~~~~~~~^ While building module 'Foundation' imported from /opt/theos/Prefix.pch:11: While building module 'Security' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9: In file included from <module-includes>:2: In file included from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:27: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:27:10: fatal error: could not build module 'Darwin' #include <TargetConditionals.h> ~~~~~~~~^ In file included from <built-in>:1: /opt/theos/Prefix.pch:11:11: fatal error: could not build module 'Foundation' #import <Foundation/Foundation.h> ~~~~~~~^ While building module 'UIKit' imported from /opt/theos/Prefix.pch:20: In file included from <module-includes>:2: In file included from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:8: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h:8:9: fatal error: could not build module 'Darwin' #import <Availability.h> ~~~~~~~^ While building module 'UIKit' imported from /opt/theos/Prefix.pch:20: While building module 'CoreGraphics' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:9: In file included from <module-includes>:2: In file included from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:8: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:8:10: fatal error: could not build module 'Darwin' #include <stdbool.h> ~~~~~~~~^ While building module 'UIKit' imported from /opt/theos/Prefix.pch:20: While building module 'QuartzCore' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9: In file included from <module-includes>:1: In file included from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9: In file included from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:9: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: fatal error: could not build module 'Darwin' #include <stdbool.h> ~~~~~~~~^ While building module 'UIKit' imported from /opt/theos/Prefix.pch:20: While building module 'QuartzCore' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9: While building module 'OpenGLES' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:7: In file included from <module-includes>:2: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: fatal error: could not build module 'Foundation' #include <Foundation/Foundation.h> ~~~~~~~~^ While building module 'UIKit' imported from /opt/theos/Prefix.pch:20: While building module 'QuartzCore' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9: While building module 'Metal' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h:7: In file included from <module-includes>:2: In file included from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.h:8: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h:8:9: fatal error: could not build module 'Darwin' #import <Availability.h> ~~~~~~~^ While building module 'UIKit' imported from /opt/theos/Prefix.pch:20: While building module 'QuartzCore' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9: While building module 'Metal' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMetalLayer.h:7: While building module 'IOSurface' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h:15: In file included from <module-includes>:2: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:12:10: fatal error: could not build module 'Darwin' #include <sys/cdefs.h> ~~~~~~~~^ While building module 'UIKit' imported from /opt/theos/Prefix.pch:20: While building module 'CoreImage' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11: In file included from <module-includes>:2: In file included from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h:8: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:10:10: fatal error: could not build module 'Darwin' #include <TargetConditionals.h> ~~~~~~~~^ While building module 'UIKit' imported from /opt/theos/Prefix.pch:20: While building module 'CoreImage' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11: While building module 'CoreVideo' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:10: In file included from <module-includes>:2: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CoreVideo.h:16:10: fatal error: could not build module 'Darwin' #include <TargetConditionals.h> ~~~~~~~~^ While building module 'UIKit' imported from /opt/theos/Prefix.pch:20: While building module 'CoreImage' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:11: While building module 'ImageIO' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIImage.h:11: In file included from <module-includes>:2: In file included from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:10: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h:11:10: fatal error: could not build module 'CoreFoundation' #include <CoreFoundation/CoreFoundation.h> ~~~~~~~~^ While building module 'UIKit' imported from /opt/theos/Prefix.pch:20: While building module 'CoreText' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSText.h:10: In file included from <module-includes>:2: In file included from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h:20: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h:12:10: fatal error: could not build module 'Darwin' #include <Availability.h> ~~~~~~~~^ While building module 'UIKit' imported from /opt/theos/Prefix.pch:20: While building module 'FileProvider' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/NSFileProviderExtension.h:14: In file included from <module-includes>:1: In file included from /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/FileProvider.framework/Headers/FileProvider.h:8: /opt/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDomain.h:8:9: fatal error: could not build module 'Foundation' #import <Foundation/Foundation.h> ~~~~~~~^ While building module 'os' imported from /opt/theos/vendor/include/_Prefix/HBLog.h:2: While building module 'MachO' imported from /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/os/trace_base.h:8: In file included from <module-includes>:2: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/mach-o/arch.h:32:10: fatal error: could not build module 'Darwin' #include <stdint.h> ~~~~~~~~^ While building module 'os' imported from /opt/theos/vendor/include/_Prefix/HBLog.h:2: In file included from <module-includes>:2: /opt/theos/sdks/iPhoneOS11.2.sdk/usr/include/os/trace_base.h:8:10: fatal error: could not build module 'MachO' #include <mach-o/loader.h> ~~~~~~~~^ 28 errors generated. /opt/theos/makefiles/instance/rules.mk:295: recipe for target '/home/Hal0405/test/.theos/obj/debug/arm64/Tweak.xm.65fa917e.o' failed make[3]: *** [/home/Hal0405/test/.theos/obj/debug/arm64/Tweak.xm.65fa917e.o] Error 1 /opt/theos/makefiles/instance/library.mk:32: recipe for target '/home/Hal0405/test/.theos/obj/debug/arm64/test.dylib' failed make[2]: *** [/home/Hal0405/test/.theos/obj/debug/arm64/test.dylib] Error 2 /opt/theos/makefiles/instance/library.mk:24: recipe for target 'internal-library-all_' failed make[1]: *** [internal-library-all_] Error 2 /opt/theos/makefiles/master/rules.mk:106: recipe for target 'test.all.tweak.variables' failed make: *** [test.all.tweak.variables] Error 2
@shotguntuck Turns out that's some issue with the linux-toolchain and iOS 10+ SDKs. You're going to have to wait for @kirb to update the iPhoneOS9.3
SDK
@inoahdev @kirb Thanks a lot for your help regarding this issue guys, your help is much appreciated. Desperately waiting for that iOS 9.3 SDK. Thanks a lot!
Hey I'm still having this issue when trying to build. I downloaded your iPhone SDK from the dropbox link and put it in the sdks folder of Theos, and I still get this error.
Making all for tweak WeatherKelvin… ==> Preprocessing Tweak.xm… ==> Compiling Tweak.xm (arm64)… ==> Linking tweak WeatherKelvin (arm64)… clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7 [-Wdeprecated] ld: in '/usr/lib/system/liblaunch.dylib', missing required architecture arm64 in file /usr/lib/system/liblaunch.dylib (2 slices) for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: [/Users/tylerjaacks/Documents/Projects/Tweaks/KelvinWeather/.theos/obj/debug/arm64/WeatherKelvin.dylib] Error 1 make[2]: [/Users/tylerjaacks/Documents/Projects/Tweaks/KelvinWeather/.theos/obj/debug/arm64/WeatherKelvin.dylib] Error 2 make[1]: [internal-library-all_] Error 2 make: [WeatherKelvin.all.tweak.variables] Error 2
I have tried using lower versions like 8.1, 9.2, 9.3, and 10.3 nothing works. I am lost because I installed everything correctly. Source for my project if your curious is here https://github.com/TylerJaacks/KelvinWeather
Can you please try the latest version from the repo @TylerJaacks? Download ZIP and extract it into $THEOS/sdks/ making sure to delete the old SDK first.
Nope, didn't work. @kirb
@TylerJaacks You can try building with iPhoneOS10.3.sdk or iPhoneOS11.2.sdk, should work for iOS 9 too
Projects compiled fine before i replaced the SDK.
Error I'm getting: ld: in '/usr/lib/system/liblaunch.dylib', missing required architecture armv7 in file /usr/lib/system/liblaunch.dylib (2 slices) for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile: https://ghostbin.com/paste/dabkh
I'm using macOS High Sierra 10.13.3