0

I've downloaded Menu Path 2.0 Examples https://github.com/yourabi/PathMenuExample/downloads When I place this code on my new projects and forced me to remove autorelease which i did. Next thing, when I compile it. I get Apple Mach-O Linker Error:

"_OBJC_CLASS_$_ExpandableNavigation", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I don't understand what's going on. I've add almost everything CoreData and trying to best to avoid apple Mach-o linker. When I remove whole "ExpandableNavitgation" code. It works fine. But I need this on my application. It won't look good without having menu path 2.0

    - (void)viewDidLoad
    {

    [super viewDidLoad];
    /////////////////////////////////////////////////
    // initialize ExpandableNavigation object with an array of buttons.
    NSArray* buttons = [NSArray arrayWithObjects:button1, button2, button3, button4, button5, nil];


    ////////////////////////////////////////////////
    // This doesn't work. Xcode forced me to remove autorelease.
    // APPLE Mach-O Linker.
    //  Code Removed dated: Sep 25, 2012
    //  Test: Error
    //
    //
    //self.navigation = [[[ExpandableNavigation alloc] initWithMenuItems:buttons mainButton:self.main radius:52.0] autorelease];


    ////////////////////////////////////////////////
    // Remove AutoRelease. This is problem I'm having.
    // It works fine if you remove NSArray and This.
    // Code Added dated: Sep 27, 2012
    // Test: APPLE MacH-O-Linker.
    //
    //
    self.navigation = [[ExpandableNavigation alloc] initWithMenuItems:buttons mainButton:self.main radius:52.0];

    ....

I don't know how to fix this. I'm confused and stuck with XCode 4.5.

0 Answers0