theos / sdks

Patched sdks that include private framework tbds
Other
585 stars 205 forks source link

Error importing Foundation/Foundation.h - Linux with iOS 16.5 sdk #70

Closed slayy2357 closed 7 months ago

slayy2357 commented 7 months ago

What are the steps to reproduce this issue?

  1. import <Foundation/Foundation.h>

  2. make

What happens?

What were you expecting to happen? Dylib build

Any logs, error output, etc? Gist error link

What versions of software are you using?

Operating System: Linux (debian)

Toolchain Version: I don't know

SDK Version: 16.5

L1ghtmann commented 7 months ago

Hey, thanks for reporting this!

To quote a message from the Theos discord:

Apologies, the current swift toolchain is outdated. You can install an up-to-date one by running

rm -rf $THEOS/toolchain/*
curl -sL https://github.com/kabiroberai/swift-toolchain-linux/releases/download/v2.3.0/swift-5.8-ubuntu20.04.tar.xz | tar -xJvf - -C $THEOS/toolchain/

This should solve your issue.

slayy2357 commented 7 months ago

You are a life saver, closing (thanks :)