Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios5 iOS 5链接器错误_Ios5_Linker Errors - Fatal编程技术网

Ios5 iOS 5链接器错误

Ios5 iOS 5链接器错误,ios5,linker-errors,Ios5,Linker Errors,编辑一些代码后,我发现4个构建错误: Undefined symbols for architecture i386: "_OBJC_CLASS_$_Playlist", referenced from: objc-class-ref in PlayerViewController.o "_OBJC_CLASS_$_Song", referenced from: objc-class-ref in PlayerViewController.o "_currentIndex", refer

编辑一些代码后,我发现4个构建错误:

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Playlist", referenced from:
  objc-class-ref in PlayerViewController.o
"_OBJC_CLASS_$_Song", referenced from:
  objc-class-ref in PlayerViewController.o
"_currentIndex", referenced from:
  -[PlayerViewController viewDidLoad] in PlayerViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

关于如何解决这个问题有什么提示吗?

有时候Xcode会忘记在编译列表中添加类


转到项目设置-目标-构建阶段-编译源代码,检查是否所有需要的文件都在那里。

有时候Xcode忘记在编译列表中添加类

转到项目设置-目标-构建阶段-编译源代码并检查是否存在所有需要的文件