Skip to content
Guest Big Announcement

SCLAlertView troubles/errors

Featured Replies

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?

  • Author

If you show us your errors, we can help you.

One sec I can take a screenshot :)
  • Author

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
  • Author

 

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

Aren't those errors and not warnings?"10 errors generated."

It helps surpress warnings

errors*

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.