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

iOS 11.2 SDK Foundation build error: Nullability specifier #13

Closed
OAmAr opened this issue Jul 10, 2018 · 4 comments
Closed

iOS 11.2 SDK Foundation build error: Nullability specifier #13

OAmAr opened this issue Jul 10, 2018 · 4 comments

Comments

@OAmAr
Copy link

OAmAr commented Jul 10, 2018

Hello,
I'm new to tweak development and am trying to use theos to make a test tweak. When running make package I'm getting 11 errors (full file null_error.txt) that seem to stem from the Foundation module failing to compile.
I am using the up to date SDK from the repo, and I've also tried using the last sdk posted in #10. I'm developing on an ubuntu 16.04 machine
The first error is:

While building module 'Foundation' imported from /home/omar/theos/Prefix.pch:11:
In file included from <module-includes>:2:
In file included from /home/omar/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:128:
/home/omar/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h:26:49: error: nullability specifier '_Nullable' cannot be applied to non-pointer type 'uuid_t' (aka 'unsigned char [16]')
- (instancetype)initWithUUIDBytes:(const uuid_t _Nullable)bytes;
                                                ^
/home/omar/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h:29:30: error: nullability specifier '_Nonnull' cannot be applied to non-pointer type 'uuid_t' (aka 'unsigned char [16]')
- (void)getUUIDBytes:(uuid_t _Nonnull)uuid;

Then there are 10 more errors of the form:

n file included from <built-in>:1:
/home/omar/theos/Prefix.pch:11:11: fatal error: could not build module 'Foundation'
                #import <Foundation/Foundation.h>
                 ~~~~~~~^
While building module 'UIKit' imported from /home/omar/theos/Prefix.pch:20:
In file included from <module-includes>:2:
In file included from /home/omar/theos/sdks/iPhoneOS11.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:11:
@kirb
Copy link
Member

kirb commented Jul 10, 2018

Linux/Cygwin toolchains are fairly old, they don’t support some more recent features the iOS 10+ SDKs use. The newest you can use is 9.3 till those toolchains get updated.

@OAmAr
Copy link
Author

OAmAr commented Jul 10, 2018

Oh I see, that's unfortunate :( Thanks for the quick response!

@TheGithubJoshua
Copy link

@kirb have the toolchains been updated yet? On Linux and am getting the same error.

@L1ghtmann
Copy link
Member

@TheGithubJoshua yes they have. If you're encountering a problem, please open a new issue.

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

4 participants