Jump to content

Undefined symbols for architecture armv7:


Go to solution Solved by castix,

15 posts in this topic

Recommended Posts

Posted (edited)

i seen how to fix this with ARCHS = armv7 arm64 but i still got error

 

using SDK 8.1

 
Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_UIAlertView", referenced from:
      objc-class-ref in Tweak.xm.336cffdf.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/test.dylib.64873355.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [test.all.tweak.variables] Error 2

makefile

include theos/makefiles/common.mk

ARCHS = armv7 arm64

TWEAK_NAME = test
test_FILES = Tweak.xm
test__FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk
Updated by L33TPr0xY
  • Solution
Posted (edited)

One '_' too much in your Makefile

 

test_FRAMEWORKS = UIKit
Also

#include <UIKit/UIKit.h>
Updated by castix
Posted

One '_' too much in your Makefile

 

test_FRAMEWORKS = UIKit
Also

#include <UIKit/UIKit.h>

good looks it was bc of  ( _ )x2 :lol: im a dummy

Posted (edited)

testing alerts bc i have no clue how to find what goes %hook { do i put apps name here? }AppDelegate

 
but i installed the tweak and no alert :mad:
 
 

 

#import <UIKit/UIKit.h>

%hook KikAppDelegate
-(void)applicationDidBecomeActive:(id)argument { 
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"This is a TEST" message:@"TESTING TESTING 123" delegate:nil cancelButtonTitle:@"hello" otherButtonTitles:nil]; 
[alert show]; 
[alert release]; 
} 
%end
Updated by L33TPr0xY
Posted

Your AppDelegate must be wrong?

 

How did you find your current one or just guessed?

Posted

i used the name from CFBundleDisplayName

Open Flex -> Process Kik -> Search for applicationdidbecome or appdelegate -> Find the Target Class and add it to your Tweak.xm then compile, install and run Kik.

Posted

Open Flex -> Process Kik -> Search for applicationdidbecome or appdelegate -> Find the Target Class and add it to your Tweak.xm then compile, install and run Kik.

jeBaG0d.jpg

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