Xcode报错

Undefined symbols for architecture x86_64:ui

  "_OBJC_CLASS_$_HeaderView", referenced from:spa

      objc-class-ref in ViewController.ocode

ld: symbol(s) not found for architecture x86_64it

clang: error: linker command failed with exit code 1 (use -v to see invocation)io

 

此处错误是由于你的在building phases中没有引用相关的头文件,好比这里就是没有引入HeaderView。class

所以,只须要在 building phase 中的 Compile Sources  项 中添加对应的 HeaderView.m 文件就引用

能够了。command

相关文章
相关标签/搜索