XCODE 6.1.1框架问题

时间:2015-04-19 23:46:01

标签: ios objective-c frameworks xcode6

我已经通过XCode 6.1.1构建了一个cocoa框架,也创建了框架的通用版本,然后当我将框架导入项目时,编译错误:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_UIResponder", referenced from:
      _OBJC_CLASS_$_AppDelegate in AppDelegate.o
  "_OBJC_METACLASS_$_UIResponder", referenced from:
      _OBJC_METACLASS_$_AppDelegate in AppDelegate.o
  "_UIApplicationMain", referenced from:
      _main in main.o
  "_OBJC_METACLASS_$_UIViewController", referenced from:
      _OBJC_METACLASS_$_ViewController in ViewController.o
  "_OBJC_CLASS_$_UIViewController", referenced from:
      _OBJC_CLASS_$_ViewController 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)

很想知道为什么? 以及如何分析问题的原因?

1 个答案:

答案 0 :(得分:0)

在构建之前,您必须将armv7架构添加到您的框架中 因为您使用框架的项目具有此体系结构。

您还可以检查框架的路径(框架搜索路径)