Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.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
iPhone“_OBJC“U类”;编译错误_Iphone_Xcode - Fatal编程技术网

iPhone“_OBJC“U类”;编译错误

iPhone“_OBJC“U类”;编译错误,iphone,xcode,Iphone,Xcode,我正在尝试用Xcode编译我的项目。但是我得到了以下错误 "_OBJC_CLASS_$_InfrastructureBenchmarkingViewController", referenced from: objc-class-ref-to-InfrastructureBenchmarkingViewController in RootViewController.o 4个以上类似类型 无法理解此错误的含义 小说明:实际上,_InfrastructureBenchmarkingView

我正在尝试用Xcode编译我的项目。但是我得到了以下错误

 "_OBJC_CLASS_$_InfrastructureBenchmarkingViewController", referenced from:
  objc-class-ref-to-InfrastructureBenchmarkingViewController in RootViewController.o
4个以上类似类型

无法理解此错误的含义


小说明:实际上,_InfrastructureBenchmarkingViewController是另一个项目中的一个模块。我已将与之相关的文件复制到新应用程序中。

似乎您有一些不再有效的目标文件。使用菜单中的“清理”选项,然后再次构建它。这应该可以解决问题。

您需要在任何框架中链接\u Infrastructure Benchmarking ViewController是其中的一部分。尝试转到“项目”窗口,右键单击框架并选择“添加现有框架…”


您应该能够在那里找到包含_InfrastructureBenchmarking ViewController的框架。

有时,当项目定义文件(.xcodeproj/project.pbxproj)以某种方式混乱时,会发生这种情况,例如,由于XCode崩溃或项目从其他人处获取,等等

因此,请尝试删除InfrastructureBenchmarkingViewController(删除该文件,然后选择“删除引用”,使其不会从光盘中物理删除),然后再次将该文件添加到项目中(从项目上下文菜单中添加>现有文件)


它对我起了好几次作用。

很抱歉搞混了,实际上我已经通过复制相关文件将另一个项目中的_InfrastructureBenchmarking ViewController添加到了现有项目中。您的类Nfrastructure Benchmarking ViewController是否引用了新项目中未包含的任何框架,请检查一次。。