Trying to compile MobileSubstrate addon - Undefined symbol

Posted by eWolf on Stack Overflow See other posts from Stack Overflow or by eWolf
Published on 2010-04-26T11:58:13Z Indexed on 2010/06/03 13:04 UTC
Read the original article Hit count: 375

Filed under:
|
|
|
|

Hi!

I went through this tutorial to create a MobileSubstrate addon. I could compile the example hook without errors.

But as soon as I add

#import <SpringBoard/SBAwayController.h>

in ExampleHookProtocol.h and

SBAwayController *awayController = [SBAwayController sharedAwayController];

in ExampleHookLibrary.mm (as the first line of the __$ExampleHook_AppIcon_Launch function) I get the following error message when attempting to make (triggered by the latter change):

Undefined symbols:
  "_OBJC_CLASS_$_SBAwayController", referenced from:
    __objc_classrefs__DATA@0 in ExampleHookLibrary.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [ExampleHook.dylib] Error 1.

The header file for SBAwayController is located in /var/toolchain/sys30/usr/include/SpringBoard, just like SBApplicationIcon.h, which is used by the ExampleHook.

I'm compiling on my iPod touch 2G.

Can anyone help me?

Thanks in advance,

Eric

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c