Jump to content

12 posts in this topic

Recommended Posts

Posted

I'm having problems implementing a SCLAlert to my tweak

 

I seen DiDA explaining what to do but when I tried that I get errors from the .h I downloaded from GitHub

 

Can somebody help me?

Posted

Copy and paste the error output here.

 

Or follow this: https://iosgods.com/topic/15353-readme-how-to-save-terminal-errors-to-an-output-file/

Thanks I didn't even know I could save the errors

 

So here's the errors I've been getting:

Making all for tweak FruitSplash...
 Preprocessing Tweak.xm...
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
 Compiling Tweak.xm...
In file included from Tweak.xm:1:
In file included from /var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.h:14:
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLButton.h:74:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property id target;
^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLButton.h:74:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLButton.h:94:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property (nonatomic) SCLTimerDisplay *timer;
^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLButton.h:94:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
In file included from Tweak.xm:1:
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.h:108:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property UILabel *labelTitle;
^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.h:108:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.h:114:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property UITextView *viewText;
^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.h:114:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.h:120:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property UIActivityIndicatorView *activityIndicatorView;
^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.h:120:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
10 errors generated.
make[2]: *** [obj/Tweak.xm.3df904c2.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [FruitSplash.all.tweak.variables] Error 2
Posted

Are you using the latest SCLAlertView Headers? And which SDK?

Posted

 

TWEAKNAME_CFLAGS = -w

 

Aren't those errors and not warnings?

 

"10 errors generated."

Posted

 

TWEAKNAME_CFLAGS = -w
I get these errors now:

Making all for tweak FruitSplash...
 Preprocessing Tweak.xm...
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
 Compiling Tweak.xm...
 Compiling /var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m...
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:64:1: error: @synthesize of 'weak' property is only allowed in ARC or GC mode
@implementation SCLAlertView
^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:47:47: note: property declared here
@property (nonatomic, weak) UIViewController *rootViewController;
                                              ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:64:1: error: @synthesize of 'weak' property is only allowed in ARC or GC mode
@implementation SCLAlertView
^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:48:61: note: property declared here
@property (nonatomic, weak) id<UIGestureRecognizerDelegate> restoreInteractivePopGestureDelegate;
                                                            ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1639:1: error: @synthesize of 'weak' property is only allowed in ARC or GC mode
@implementation SCLALertViewTextFieldBuilder
^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.h:488:51: note: property declared here
@property(weak, nonatomic, readonly) SCLTextView *textField;
                                                  ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1642:23: error: a parameter list without types is only allowed in a function definition
        __weak typeof(self) weakSelf = self;
                      ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1642:28: error: expected ';' at end of declaration
        __weak typeof(self) weakSelf = self;
                           ^
                           ;
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1644:13: error: use of undeclared identifier 'weakSelf'
            weakSelf.parameterTitle = title;
            ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1645:20: error: use of undeclared identifier 'weakSelf'
            return weakSelf;
                   ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1673:1: error: @synthesize of 'weak' property is only allowed in ARC or GC mode
@implementation SCLALertViewButtonBuilder
^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.h:498:49: note: property declared here
@property(weak, nonatomic, readonly) SCLButton *button;
                                                ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1673:1: error: @synthesize of 'weak' property is only allowed in ARC or GC mode
@implementation SCLALertViewButtonBuilder
^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1656:31: note: property declared here
@property(weak, nonatomic) id parameterTarget;
                              ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1676:23: error: a parameter list without types is only allowed in a function definition
        __weak typeof(self) weakSelf = self;
                      ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1676:28: error: expected ';' at end of declaration
        __weak typeof(self) weakSelf = self;
                           ^
                           ;
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1678:13: error: use of undeclared identifier 'weakSelf'
            weakSelf.parameterTitle = title;
            ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1679:20: error: use of undeclared identifier 'weakSelf'
            return weakSelf;
                   ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1686:23: error: a parameter list without types is only allowed in a function definition
        __weak typeof(self) weakSelf = self;
                      ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1686:28: error: expected ';' at end of declaration
        __weak typeof(self) weakSelf = self;
                           ^
                           ;
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1688:13: error: use of undeclared identifier 'weakSelf'
            weakSelf.parameterTarget = target;
            ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1689:20: error: use of undeclared identifier 'weakSelf'
            return weakSelf;
                   ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1696:23: error: a parameter list without types is only allowed in a function definition
        __weak typeof(self) weakSelf = self;
                      ^
/var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m:1696:28: error: expected ';' at end of declaration
        __weak typeof(self) weakSelf = self;
                           ^
                           ;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [obj//var/mobile/fruitsplash/theos/include/SCLAlertView/SCLAlertView.m.7031c4ef.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [FruitSplash.all.tweak.variables] Error 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines