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

Several errors: "cannot find interface declaration for" #70

Open
strano666 opened this issue Nov 13, 2020 · 1 comment
Open

Several errors: "cannot find interface declaration for" #70

strano666 opened this issue Nov 13, 2020 · 1 comment

Comments

@strano666
Copy link

Hi!

I've upgraded both theos and theos-jailed. Now i can not make the package because of the error following. Previously it works perfectly.

$@[~/----]> make package
==> Notice: Build may be slow as Theos isn’t using all available CPU cores on this computer. Consider upgrading GNU Make: https://github.com/theos/theos/wiki/Parallel-Building
> Making all for tweak TWEAK_NAME…
==> Preprocessing Tweak.xm…
==> Compiling Tweak.xm (armv7)…
In file included from Tweak.xm:8:
/---/hook/CommonDigestHook.h:8:31: error: cannot find interface declaration for 'NSObject', superclass of
      'CommonDigestHook'
@interface CommonDigestHook : NSObject {
~~~~~~~~~~~~~~~~~~~~~~~~~~~   ^

There are several errors like this, all related to NSObject and superclass of <HOOK_NAME>
My hooks are all similar. Quoting that one in the above error, these are the .h and .m files related to.
CommonDigestHook.h

@interface CommonDigestHook : NSObject {

}

+ (void)enableHooks;

@end

CommonDigestHook.m

#include <substrate.h>
#include <CommonCrypto/CommonDigest.h>

#import <fishhook.h>

#import "CommonDigestHook.h"
[...]

Following there is my Tweak.xm

// Importing Hook
#import "hook/CommonDigestHook.h"
<THE OTHERS SIMILAR HOOKS>

[...]

I've also tried to reinstall entirely both theos and theos-jailed
Thanks for any help!

@L1ghtmann
Copy link

This likely occurred as Theos migrated away from auto-importing UIKit/Foundation with the deprecation of Prefix.pch.

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

2 participants