Strange error when running my project

2019-08-08 20:21发布

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?

2条回答
ゆ 、 Hurt°
2楼-- · 2019-08-08 21:01

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

Good luck!

查看更多
看我几分像从前
3楼-- · 2019-08-08 21:08

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.

查看更多
登录 后发表回答