Code Monkey home page Code Monkey logo

Comments (61)

inoahdev avatar inoahdev commented on August 21, 2024 1

@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

from sdks.

nullpixel avatar nullpixel commented on August 21, 2024

I’m having this issue too. A version of the script was updated, but I’ve yet to test it out

from sdks.

DuIslingr avatar DuIslingr commented on August 21, 2024

does it compile if you only target arm64?

from sdks.

GameFuzzy avatar GameFuzzy commented on August 21, 2024

I'll try that now.

from sdks.

GameFuzzy avatar GameFuzzy commented on August 21, 2024

Got the same error.

from sdks.

DuIslingr avatar DuIslingr commented on August 21, 2024

it still gives you an error about armv7?

from sdks.

GameFuzzy avatar GameFuzzy commented on August 21, 2024

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

from sdks.

DuIslingr avatar DuIslingr commented on August 21, 2024

hmmm interesting. what happens if you try targeting x86_64 ?

from sdks.

GameFuzzy avatar GameFuzzy commented on August 21, 2024

A bunch of
"Unsupported architecture
#error Unsupported architecture" messages?

from sdks.

DuIslingr avatar DuIslingr commented on August 21, 2024

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

from sdks.

nullpixel avatar nullpixel commented on August 21, 2024

I think it’s from the simulator SDK. think

from sdks.

DuIslingr avatar DuIslingr commented on August 21, 2024

I would assume so

from sdks.

GameFuzzy avatar GameFuzzy commented on August 21, 2024

Here's the dylib anyway: https://www.dropbox.com/s/u8771s5arz1h3j1/liblaunch.dylib?dl=0

from sdks.

inoahdev avatar inoahdev commented on August 21, 2024

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

from sdks.

GameFuzzy avatar GameFuzzy commented on August 21, 2024

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

from sdks.

nullpixel avatar nullpixel commented on August 21, 2024

The fixed the issue with the script was fixed we believe, and the updated SDKs will be out soon

from sdks.

Packetfahrer avatar Packetfahrer commented on August 21, 2024

I got the same issue with iOS 10.3 sdk ( @GameFuzzy )

from sdks.

inoahdev avatar inoahdev commented on August 21, 2024

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

from sdks.

iammruni avatar iammruni commented on August 21, 2024

@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

from sdks.

iammruni avatar iammruni commented on August 21, 2024

@nullpixel where to get the updated SDKs wherever they are released

from sdks.

iammruni avatar iammruni commented on August 21, 2024

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:

https://pastebin.com/9R5Qujuh

from sdks.

iammruni avatar iammruni commented on August 21, 2024

Btw I am on an iPhone not a mac

from sdks.

kirb avatar kirb commented on August 21, 2024

You’re using a very old version of Theos. Please see https://git.io/theosinstall.

from sdks.

iammruni avatar iammruni commented on August 21, 2024

@kirb GitHub is not supporting weak algorithms now so can't pull from my iOS device...

from sdks.

kirb avatar kirb commented on August 21, 2024

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.

from sdks.

iammruni avatar iammruni commented on August 21, 2024

@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?

from sdks.

iammruni avatar iammruni commented on August 21, 2024

@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/ [email protected]:/var/theos

from sdks.

GameFuzzy avatar GameFuzzy commented on August 21, 2024

My project compiled using the new sdk.

from sdks.

iammruni avatar iammruni commented on August 21, 2024

@GameFuzzy can you give me the link to the new SDK

from sdks.

GameFuzzy avatar GameFuzzy commented on August 21, 2024

It's the SDK inoahdev uploaded.

from sdks.

iammruni avatar iammruni commented on August 21, 2024

Oh! No, I actually on iOS and using 9.3.3... So yeah...

from sdks.

ienthach avatar ienthach commented on August 21, 2024

@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

from sdks.

iammruni avatar iammruni commented on August 21, 2024

Where can I find these files? So that I'll download and check if it works...

from sdks.

ienthach avatar ienthach commented on August 21, 2024

@iammruni from https://www.dropbox.com/s/x1n9li88y4nrtt5/iPhoneOS11.2.sdk.zip?dl=0

from sdks.

GameFuzzy avatar GameFuzzy commented on August 21, 2024

Try putting the SDK here: Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

from sdks.

shotguntuck avatar shotguntuck commented on August 21, 2024

Still getting the error :/

from sdks.

inoahdev avatar inoahdev commented on August 21, 2024

@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

from sdks.

shotguntuck avatar shotguntuck commented on August 21, 2024

Still getting the same error

from sdks.

inoahdev avatar inoahdev commented on August 21, 2024

@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

from sdks.

inoahdev avatar inoahdev commented on August 21, 2024

@shotguntuck You have to replace "your_sdk_dir_path_here" with the path to your sdk

from sdks.

shotguntuck avatar shotguntuck commented on August 21, 2024

like so:
Laptop:~# grep /opt/theos/sdks -e "liblaunch.dylib"
grep: /opt/theos/sdks: Is a directory

from sdks.

inoahdev avatar inoahdev commented on August 21, 2024

@shotguntuck You forgot -rnw, like so:
grep -rnw /opt/theos/sdks -e "liblaunch.dylib"

from sdks.

shotguntuck avatar shotguntuck commented on August 21, 2024

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,

from sdks.

inoahdev avatar inoahdev commented on August 21, 2024

@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

from sdks.

shotguntuck avatar shotguntuck commented on August 21, 2024

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 :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 __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: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 :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 __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: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

from sdks.

iammruni avatar iammruni commented on August 21, 2024

@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!

from sdks.

TylerJaacks avatar TylerJaacks commented on August 21, 2024

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

from sdks.

kirb avatar kirb commented on August 21, 2024

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.

from sdks.

TylerJaacks avatar TylerJaacks commented on August 21, 2024

Nope, didn't work. @kirb

from sdks.

snakeninny avatar snakeninny commented on August 21, 2024

@TylerJaacks You can try building with iPhoneOS10.3.sdk or iPhoneOS11.2.sdk, should work for iOS 9 too

from sdks.

rainwolf avatar rainwolf commented on August 21, 2024

I had this launchlib issue as well and it turns out I had a stray SYSROOT set in ~/.theosrc to the 9.3 sdk which messed things up. When I set that to the 11.2 sdk, the error disappeared.

from sdks.

kemmis avatar kemmis commented on August 21, 2024

any update on this issue? are we waiting on sdks or toolchains to be updated?

from sdks.

LucifersCircle avatar LucifersCircle commented on August 21, 2024

After a fresh installation of theos, I also got this error. What I did to fix it was have someone upload the dlyb from /usr/lib/system, once I had the file I renamed it to liblaunch.dlyb and placed it in my own /usr/lib/system directory. I'm not sure why this worked, or if its even safe, but if you would like to try it let me know and I will send you the file.

from sdks.

enty8080 avatar enty8080 commented on August 21, 2024

Send me the file please :)

from sdks.

enty8080 avatar enty8080 commented on August 21, 2024

@LucifersCircle You can send me this file.

from sdks.

enty8080 avatar enty8080 commented on August 21, 2024

Error with liblaunch.dylib:

> Making all for tool esplios…
==> Linking tool esplios (armv7)…
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)
make[3]: *** [/Users/enty8080/eggshell/src/esplios/.theos/obj/debug/armv7/esplios] Error 1
make[2]: *** [/Users/enty8080/eggshell/src/esplios/.theos/obj/debug/armv7/esplios] Error 2
make[1]: *** [internal-tool-all_] Error 2
make: *** [ios.all.tool.variables] Error 2

Also there is an error with libcrypto.a:

> Making all for tool esplios…
make[3]: *** No rule to make target `libcrypto.a', needed by `/Users/enty8080/eggshell/src/esplios/.theos/obj/debug/armv7/esplios'.  Stop.
make[2]: *** [/Users/enty8080/eggshell/src/esplios/.theos/obj/debug/armv7/esplios] Error 2
make[1]: *** [internal-tool-all_] Error 2
make: *** [ios.all.tool.variables] Error 2

System:

  • MacOS High Sierra 10.13.6
  • Xcode 7.2.1
  • SDK iPhoneOS9.3
  • Theos latest version

Compilation succeed, but link failed!

from sdks.

Vbbab avatar Vbbab commented on August 21, 2024

When should we expect an update? It's been two years since the issue was opened...

from sdks.

inoahdev avatar inoahdev commented on August 21, 2024

Only the 11.2 SDK is fixed. Both other SDKs need to be regenerated

from sdks.

PoomSmart avatar PoomSmart commented on August 21, 2024

@inoahdev Any plans so?

from sdks.

inoahdev avatar inoahdev commented on August 21, 2024

@PoomSmart I have no plans, i'd suggest you get the sdks if you were planning to

from sdks.

kirb avatar kirb commented on August 21, 2024

Fixed now with the regenerated SDKs, so closing.

from sdks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.