0

我已经下载了菜单路径 2.0 示例 https://github.com/yourabi/PathMenuExample/downloads 当我将此代码放在我的新项目中并强迫我删除我所做的自动发布时。接下来,当我编译它时。我收到 Apple Mach-O 链接器错误:

“_OBJC_CLASS_$_ExpandableNavigation”,引用自:ViewController.o 中的 objc-class-ref ld:未找到架构 armv7 clang 的符号:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

我不明白发生了什么事。我已经添加了几乎所有 CoreData 并尽量避免使用苹果 Mach-o 链接器。当我删除整个“ExpandableNavitgation”代码时。它工作正常。但我的应用程序需要这个。没有菜单路径 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];

    ....

我不知道如何解决这个问题。我很困惑并坚持使用 XCode 4.5。

4

0 回答 0