Hiraku
Hiraku

Reputation: 371

Undefined symbols for architecture armv6 in Jailbreak Tweak

I followed this tutorial and the source code : http://blog.objectgraph.com/index.php/2010/04/20/encrypting-decrypting-base64-encode-decode-in-iphone-objective-c/

And then, I downloaded the "Sample Code : CryptTest" from the tutorial, it works perfectly in my Xcode 4.2. (With iOS SDK 4.2)

But when I want to add these source code to my iOS jailbreak tweak, the terminal always shows this error

Undefined symbols for architecture armv6:
"_OBJC_CLASS_$_Base64", referenced from:
objc-class-ref in Tweak.xm.o
ld: symbol(s) not found for architecture armv6

This is my source code, can anyone check whether I made some mistakes? http://dl.dropbox.com/u/809728/base64.zip

(In my source code, I make AES encrypt start to work when a "q" key of QWERTY keyboard shows in iPhone)

Upvotes: 1

Views: 1073

Answers (1)

rajagp
rajagp

Reputation: 1443

Your .zip seemed to be missing some files. I can't even get it to compile with Theos ("decode" method in NSData was missing). Anyway, I looked at your code. To get Class object, use the following in your Tweak.xm and it should link properly.

Class Base64 = objc_getClass("Base64");

Upvotes: 3

Related Questions