归档我的IOS应用程序时出错?

时间:2012-08-13 05:46:23

标签: xcode ios5 archive

我已经创建了一个IOS应用程序,但是当我试图归档我的项目时,我得到两个错误 -

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

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

任何人都可以帮助我吗?

感谢。

2 个答案:

答案 0 :(得分:4)

是的,我得到了它,编译来源缺少AppDelegate.m。

答案 1 :(得分:0)

我也有同样的问题。以下步骤解决了我的问题:

  • 点击项目(Xcode窗口左上角)

  • 点击Build Phases tab -> Compile Sources

  • 检查列表中是否有AppDelegate.m。如果没有,

    • 点击+按钮

    • 搜索AppDelegate.m然后添加。