运行我的项目时出现奇怪的错误 [英] Strange error when running my project

查看:166
本文介绍了运行我的项目时出现奇怪的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试运行我的项目时,我得到这个错误,我不知道这是什么意思:

When trying to run my project I get this error and I don´t know what it means :


_OBJC_CLASS _ $ _ MyWindowController引用自:
objc-class-ref in AppDelegate。

ld:没有为架构找到符号x86_64
clang:error:linker命令失败,退出代码1 -v看到调用)

_OBJC_CLASS_$_MyWindowController", referenced from: objc-class-ref in AppDelegate.
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

这是什么意思,我该如何摆脱它?

What does it mean and how can I get rid of it?

任何想法?

推荐答案

选择应用程序目标, strong>标签,并确保 MyWindowController.m 编译源中,否则添加它。

Select the application target, go to the Build Phases tab and make sure MyWindowController.m is in Compile Sources, otherwise add it.

您使用与之相关联的 xib 文件,请确保该文件位于复制捆绑资源中。

Also, if you use a xib file associated with it, make sure it is in Copy Bundle Resources.

这篇关于运行我的项目时出现奇怪的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆