Strange error when running my project

故事扮演 提交于 2020-02-05 04:54:06

问题


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

_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?

Any ideas?


回答1:


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

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




回答2:


Check to see if the framework that your MyWindowController object is based on has been added to your project.

Good luck!



来源:https://stackoverflow.com/questions/9441387/strange-error-when-running-my-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!