Jump to content

SCLAlertView Style troubles/errors


Go to solution Solved by Pro,

28 posts in this topic

Recommended Posts

Posted (edited)

I want to make tweaks to see pop up like https://github.com/dogo/SCLAlertView and already implemented the file in theos/include/SCLAlertview. but there are errors like this. I've been looking for information on google or forum iosgods. but did not find a solution.

Please help me. thanks.
 
Sorry, my English is bad
 
and the following error I experienced :
 
Fajars-MacBook-Pro:pxcex pxcex$ make package install

 

 

> Making all for tweak pxcex…

==> Compiling /var/theos/include/SCLAlertView//SCLAlertView.m (armv7)…

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:16: error: type specifier

      missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:9: error: '__weak' only

      applies to Objective-C object or block pointer types; type here is 'int'

      [-Werror,-Wignored-attributes]

        __weak typeof(self) weakSelf = self;

        ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:23: error: a parameter list

      without types is only allowed in a function definition

        __weak typeof(self) weakSelf = self;

                      ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:28: error: expected ';' at

      end of declaration

        __weak typeof(self) weakSelf = self;

                           ^

                           ;

/var/theos/include/SCLAlertView//SCLAlertView.m:1586:13: error: use of

      undeclared identifier 'weakSelf'

            weakSelf.parameterTitle = title;

            ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1587:20: error: use of

      undeclared identifier 'weakSelf'

            return weakSelf;

                   ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:16: error: type specifier

      missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:9: error: '__weak' only

      applies to Objective-C object or block pointer types; type here is 'int'

      [-Werror,-Wignored-attributes]

        __weak typeof(self) weakSelf = self;

        ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:23: error: a parameter list

      without types is only allowed in a function definition

        __weak typeof(self) weakSelf = self;

                      ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:28: error: expected ';' at

      end of declaration

        __weak typeof(self) weakSelf = self;

                           ^

                           ;

/var/theos/include/SCLAlertView//SCLAlertView.m:1620:13: error: use of

      undeclared identifier 'weakSelf'

            weakSelf.parameterTitle = title;

            ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1621:20: error: use of

      undeclared identifier 'weakSelf'

            return weakSelf;

                   ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:16: error: type specifier

      missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:9: error: '__weak' only

      applies to Objective-C object or block pointer types; type here is 'int'

      [-Werror,-Wignored-attributes]

        __weak typeof(self) weakSelf = self;

        ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:23: error: a parameter list

      without types is only allowed in a function definition

        __weak typeof(self) weakSelf = self;

                      ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:28: error: expected ';' at

      end of declaration

        __weak typeof(self) weakSelf = self;

                           ^

                           ;

/var/theos/include/SCLAlertView//SCLAlertView.m:1630:13: error: use of

      undeclared identifier 'weakSelf'

            weakSelf.parameterTarget = target;

            ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1631:20: error: use of

      undeclared identifier 'weakSelf'

            return weakSelf;

                   ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1638:16: error: type specifier

      missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]

20 errors generated.

make[3]: *** [/users/pxcex/Documents/Tweak/pxcex/.theos/obj/debug/armv7//var/theos/include/SCLAlertView//SCLAlertView.m.47b43317.o] Error 1

make[2]: *** [/users/pxcex/Documents/Tweak/pxcex/.theos/obj/debug/armv7/pxcex.dylib] Error 2

make[1]: *** [internal-library-all_] Error 2

make: *** [pxcex.all.tweak.variables] Error 2

Fajars-MacBook-Pro:pxcex pxcex$ 

 

 

my Makefile :

 

 

ARCHS = armv7 arm64

CFLAGS = -fobjc-arc # ARC is needed for SCLAlertView
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = pxcex
pxcex_FILES = Tweak.xm $(shell find $(THEOS)/include/SCLAlertView/ -name '*.m')
pxcex__LDFLAGS += -Wl,-segalign,4000
pxcex_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit AudioToolbox
 
include $(THEOS_MAKE_PATH)/tweak.mk
 
after-install::
install.exec "killall -9 SpringBoard"
Updated by pxcex
  • Replies 27
  • Created
  • Last Reply

Top Posters In This Topic

Posted

 

already apply from there. but the problem remains the same.
 

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:16: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:9: error: '__weak' only applies to Objective-C object or block pointer types; type here is 'int' [-Werror,-Wignored-attributes]

        __weak typeof(self) weakSelf = self;

        ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:23: error: a parameter list without types is only allowed in a function definition

        __weak typeof(self) weakSelf = self;

                      ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1584:28: error: expected ';' at end of declaration

        __weak typeof(self) weakSelf = self;

                           ^

                           ;

/var/theos/include/SCLAlertView//SCLAlertView.m:1586:13: error: use of undeclared identifier 'weakSelf'

            weakSelf.parameterTitle = title;

            ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1587:20: error: use of undeclared identifier 'weakSelf'

            return weakSelf;

                   ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:16: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:9: error: '__weak' only applies to Objective-C object or block pointer types; type here is 'int' [-Werror,-Wignored-attributes]

        __weak typeof(self) weakSelf = self;

        ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:23: error: a parameter list without types is only allowed in a function definition

        __weak typeof(self) weakSelf = self;

                      ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1618:28: error: expected ';' at end of declaration

        __weak typeof(self) weakSelf = self;

                           ^

                           ;

/var/theos/include/SCLAlertView//SCLAlertView.m:1620:13: error: use of undeclared identifier 'weakSelf'

            weakSelf.parameterTitle = title;

            ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1621:20: error: use of undeclared identifier 'weakSelf'

            return weakSelf;

                   ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:16: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:9: error: '__weak' only applies to Objective-C object or block pointer types; type here is 'int' [-Werror,-Wignored-attributes]

        __weak typeof(self) weakSelf = self;

        ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:23: error: a parameter list without types is only allowed in a function definition

        __weak typeof(self) weakSelf = self;

                      ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1628:28: error: expected ';' at end of declaration

        __weak typeof(self) weakSelf = self;

                           ^

                           ;

/var/theos/include/SCLAlertView//SCLAlertView.m:1630:13: error: use of undeclared identifier 'weakSelf'

            weakSelf.parameterTarget = target;

            ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1631:20: error: use of undeclared identifier 'weakSelf'

            return weakSelf;

                   ^

/var/theos/include/SCLAlertView//SCLAlertView.m:1638:16: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]

        __weak typeof(self) weakSelf = self;

               ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]

 

20 errors generated.

Posted

I remember having this issue myself, I cannot remember how I solved it. :p

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