Skip to content
Guest Big Announcement

SCLAlertView Problem

Featured Replies

  • Author
3 minutes ago, DiDA said:

The new error doesn't tell so..

I got this error : 

==> Linking tweak 111 (armv7)…
Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_SCLAlertView", referenced from:
      objc-class-ref in Tweak.xm.c53b101c.o
ld: symbol(s) not found for architecture armv7
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/var/mobile/111/.theos/obj/debug/armv7/111.dylib] Error 1
make[2]: *** [/var/mobile/111/.theos/obj/debug/armv7/111.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [111.all.tweak.variables] Error 2

 

 

my tweak.xm 

 

#import <SCLAlertView/SCLAlertView.h>
#import <mach-o/dyld.h>
#import <substrate.h>
#import <UIKit/UIKit.h>


%hook WhatsAppAppDelegate // Change$ this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.
-(BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { 

    SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];
        
        [alert addButton: @"Visit iOSGods.com!" actionBlock: ^(void) {
        [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://iosgods.com/"]];
    }];
        
        alert.shouldDismissOnTapOutside = NO;
        alert.backgroundType = SCLAlertViewBackgroundBlur; 
        
        
        
        
    
    [alert showSuccess: nil 
              subTitle: @"Hacked by KlashKsa\n"
      closeButtonTitle: @"Thank You" 
              duration: 20.0f]; 
                return %orig;
}
%end

 

 

 

 

 

 

my makefile

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

include $(THEOS)/makefiles/common.mk

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

include $(THEOS_MAKE_PATH)/tweak.mk

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.