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 :