小编Dre*_*ner的帖子

xcode 6,ios 8,object-C++

我创建了一个新的应用程序项目(不是库或框架),然后我将"compile source as"设置为object-C++.但是当我编译源代码时,它显示"build failed".

错误是:

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)
Run Code Online (Sandbox Code Playgroud)

但令我困惑的是:如果它是一个框架项目,它编译得很好.你能救我一把手!

xcode ios

4
推荐指数
1
解决办法
1685
查看次数

标签 统计

ios ×1

xcode ×1