Skip to content
Guest Big Announcement

SCLAlertView Errors

Featured Replies

I know this is an issue others have had aswell, but I have not found any solution and those threads are dead, so I´m making my own topic.
 
I downloaded my headers from: https://github.com/dogo/SCLAlertView
 
And put the SCLAlertView folder in: /private/var/theos/include
 
Folder properties:
 
Group: Admin
Owner: root
Octal: 0755
 
 
My makefile:

 

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
#CFLAGS = -w -fobjc-arc
#THEOS_PACKAGE_DIR_NAME = debs

include theos/makefiles/common.mk

TWEAK_NAME = cs
cs_FILES = Tweak.xm $(shell find $(THEOS)/include/SCLAlertView -name '*.m')
cs_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit AudioToolbox
cs_LDFLAGS += -Wl,-segalign,4000

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
	install.exec "killall -9 SpringBoard"
SUBPROJECTS += cs autolipo
include $(THEOS_MAKE_PATH)/aggregate.mk

 


 
My tweak.xm:
 

 

#import <SCLAlertView/SCLAlertView.h>



%hook CTAppController


- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.

    SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];
    
    [alert showSuccess: @"Title here"// Success, Error, Notice, Warning, Info, Edit, Custom, Waiting
              subTitle: @"Subtitle here"
      closeButtonTitle: @"Close button"
              duration: 0.0f];
		return %orig;
}
%end

 


 
Command I executed: make package install

 
Errors:
 

 

Making all for tweak cs...
 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:5:
In file included from /var/root/cs/theos/include/SCLAlertView/SCLAlertView.h:14:
/var/root/cs/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/root/cs/theos/include/SCLAlertView/SCLButton.h:74:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
/var/root/cs/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/root/cs/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:5:
/var/root/cs/theos/include/SCLAlertView/SCLAlertView.h:110:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property UILabel *labelTitle;
^
/var/root/cs/theos/include/SCLAlertView/SCLAlertView.h:110:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
/var/root/cs/theos/include/SCLAlertView/SCLAlertView.h:116:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property UITextView *viewText;
^
/var/root/cs/theos/include/SCLAlertView/SCLAlertView.h:116:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
/var/root/cs/theos/include/SCLAlertView/SCLAlertView.h:122:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property UIActivityIndicatorView *activityIndicatorView;
^
/var/root/cs/theos/include/SCLAlertView/SCLAlertView.h:122: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.40fba40f.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [cs.all.tweak.variables] Error 2

 




I searched the forum and found this:
 

DiDA and I figured it out a while ago. PM me and I should be able to help you. :)

 

@DiDA

@Pro

 

If this is true, can one of you please PM me with the solution, or leave it as a reply here?

 

Thanks!

Updated by Guest

Use the old headers?

Where from?

GitHub

Trying :3

Use the old headers?

 

Making all for tweak sas3hack...
 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:5:
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLAlertView.h:9:1: error: use of '@[member=Import]' when modules are disabled
@[member=Import] UIKit;
^
In file included from Tweak.xm:5:
In file included from /private/var/root/sas3hack/theos/include/SCLAlertView/SCLAlertView.h:10:
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLButton.h:9:1: error: use of '@[member=Import]' when modules are disabled
@[member=Import] UIKit;
^
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLButton.h:68:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property id target;
^
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLButton.h:68:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
In file included from Tweak.xm:5:
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLAlertView.h:78:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property UILabel *labelTitle;
^
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLAlertView.h:78:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLAlertView.h:84:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property UITextView *viewText;
^
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLAlertView.h:84:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLAlertView.h:90:1: error: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Werror,-Wobjc-property-no-attribute]
@property UIActivityIndicatorView *activityIndicatorView;
^
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLAlertView.h:90:1: error: default property attribute 'assign' not appropriate for non-GC object [-Werror,-Wobjc-property-no-attribute]
Tweak.xm:27:49: error: instance method '-initWithNewWindow' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]
    SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];
                                                ^~~~~~~~~~~~~~~~~
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLAlertView.h:15:12: note: receiver is instance of class declared here
@interface SCLAlertView : UIViewController
           ^
Tweak.xm:29:12: error: instance method '-showSuccess:subTitle:closeButtonTitle:duration:' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access]
    [alert showSuccess: @"Title here"
           ^~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/root/sas3hack/theos/include/SCLAlertView/SCLAlertView.h:15:12: note: receiver is instance of class declared here
@interface SCLAlertView : UIViewController
           ^
12 errors generated.
make[2]: *** [obj/Tweak.xm.3207fd42.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [sas3hack.all.tweak.variables] Error 2


 

Please post solution and mark it as solved

Yeah, many people need the solution ^_^

Me too I need it but I got this errors:( 

 

 

Tweak.xm:1:
In file included from /var/mobile/111/theos/include/SCLAlertView/SCLAlertView.h:14:
/var/mobile/111/theos/include/SCLAlertView/SCLButton.h:72:1: error: 
      no 'assign', 'retain', or 'copy' attribute is specified
      - 'assign' is assumed
      [-Werror,-Wobjc-property-no-attribute]
@property id target;
^
/var/mobile/111/theos/include/SCLAlertView/SCLButton.h:72:1: error: 
      default property attribute 'assign' not appropriate for
      non-GC object [-Werror,-Wobjc-property-no-attribute]
2 errors generated.
make[2]: *** [obj/Tweak.xm.6f1bbf4a.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [111.all.tweak.variables] Error 2
iPhone:/var/mobile/111 root# 

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.