Inuyasha
Inuyasha

Reputation: 2366

Undefined symbols for architecture armv7 XCode 7

I know that this is a duplicate question. I followed the answers posted in the other similar Stack Overflow questions and I also tried answers posted on other websites. But, I still get the below error. So, please help me to get rid of this error.

enter image description here

Upvotes: 0

Views: 509

Answers (2)

trojanfoe
trojanfoe

Reputation: 122458

Those are all system classes. You are somehow failing to link against the UIKit.framework.

In order to solve these kinds of problems yourself, look at the text after _OBJC_CLASS_$_ and

  • If that is one of the classes in your source tree, you have failed to add the implementation file to an Xcode target.
  • If it's not then Google it to find which library/framework it belongs to, and that is the library/framework you are failing to link against.

Upvotes: 2

Arun
Arun

Reputation: 1411

The issue is with the file which you have imported. Can you please check whether you have imported .h file or .m file in your class?

This error is shown mainly in two situations :-

  1. When you import .m file of some other class in your current class instead of .h file
  2. When you add .h file to your target's Compile sources instead of .m file

Upvotes: 0

Related Questions