1

我已经创建了一个 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)

谁能帮我?

谢谢。

4

2 回答 2

4

是的,我明白了,编译源中缺少 AppDelegate.m。

于 2012-08-13T06:57:29.620 回答
0

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

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

  • 点击Build Phases tab -> Compile Sources

  • 检查是否AppDelegate.m在列表中。如果不,

    • 点击+按钮

    • 搜索AppDelegate.m然后添加。

于 2015-10-21T06:36:27.967 回答