Skip to content
Guest Big Announcement

Got and error while making a UIPopup

Featured Replies

I got this error and I have the FRAMEWORKS in the make file

 

Undefined symbols for architecture armv7:

"_OBJC_CLASS_$_UIAlertView", referenced from:

objc-class-ref in Tweak.xm.af20312e.o

ld: symbol(s) not found for architecture armv7

clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)

make[2]: *** [obj/magicpiano.dylib.64873355.unsigned] Error 1

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

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

RootAcGranted:/var/mobile/magicpiano root#

AND THIS IS THE CODE I PASTED INTO THE Tweak.xm file

 

%hook PianoAppDelegate

-(void)applicationDidBecomeActive:(id)argument {

UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"Hacked By Patricktph aka Techpro Hacker" message:@"This hack is going to give you VIP + More" delegate:nil cancelButtonTitle:@"Let's Go" otherButtonTitles:nil];

[alert show];

[alert release];

}

%end

Solved by Guest

Are you sure you added Frameworks properly to the Makefile?

 

PROJECTNAME_FRAMEWORKS = UIKit

 

(this line has to be below PROJECTNAME_FILES)

  • Author

Are you sure you added Frameworks properly to the Makefile?

 

PROJECTNAME_FRAMEWORKS = UIKit

 

(this line has to be below PROJECTNAME_FILES)

Yea I did here this is my code for the make file

export ARCHS = armv7 arm64

include theos/makefiles/common.mk

 

TWEAK_NAME = magicpiano

magicpiano_FILES = Tweak.xm

magicPiano_FRAMEWORKS = UIKit

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

install.exec "killall -9 SpringBoard"

  • Author

@@Patricktph

 

Your 

 

magicpiano_FILES = Tweak.xm
Should be uppercase.

 

Like this: 

magicPiano_FILES = Tweak.xm
I did I got an error again > here

Linking tweak magicPiano...

Undefined symbols for architecture armv7:

"_OBJC_CLASS_$_UIAlertView", referenced from:

objc-class-ref in Tweak.xm.af20312e.o

ld: symbol(s) not found for architecture armv7

clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)

make[2]: *** [obj/magicPiano.dylib.64873355.unsigned] Error 1

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

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

iPhone:/var/mobile/magicpiano root#

 

THIS IS MY Make file

ARCHS = armv7 arm64

include theos/makefiles/common.mk

 

TWEAK_NAME = magicPiano

magicPiano_FILES = Tweak.xm

MagicPino_FRAMEWPRKS = UIKit

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

install.exec "killall -9 SpringBoard"

 

AND THIS IS WHAT I PASTED IN THE TWEAK.XM

 

%hook PianoAppDelegate

-(void)applicationDidBecomeActive:(id)argument {

UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"Hacked By Patricktph aka Techpro Hacker" message:@"This hack is going to give you VIP + More" delegate:nil cancelButtonTitle:@"Let's Go" otherButtonTitles:nil];

[alert show];

[alert release];

}

%end

 

I did I got an error again > here

Linking tweak magicPiano...

Undefined symbols for architecture armv7:

"_OBJC_CLASS_$_UIAlertView", referenced from:

objc-class-ref in Tweak.xm.af20312e.o

ld: symbol(s) not found for architecture armv7

clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)

make[2]: *** [obj/magicPiano.dylib.64873355.unsigned] Error 1

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

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

iPhone:/var/mobile/magicpiano root#

 

THIS IS MY Make file

ARCHS = armv7 arm64

include theos/makefiles/common.mk

 

TWEAK_NAME = magicPiano

magicPiano_FILES = Tweak.xm

MagicPino_FRAMEWPRKS = UIKit

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

install.exec "killall -9 SpringBoard"

 

AND THIS IS WHAT I PASTED IN THE TWEAK.XM

 

%hook PianoAppDelegate

-(void)applicationDidBecomeActive:(id)argument {

UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"Hacked By Patricktph aka Techpro Hacker" message:@"This hack is going to give you VIP + More" delegate:nil cancelButtonTitle:@"Let's Go" otherButtonTitles:nil];

[alert show];

[alert release];

}

%end

  • Solution

Add this to the top

 

#include <UIKit/UIKit.h>

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.