IKImageView Causes App to Crash

1.3k Views Asked by At

I am new to ObjC. Thanks in advance for your help and patience!

I'm trying to add an image to a window in my app (This is OSX, not iOS). I added an Image View (IKImageView) via interface builder to the window. I then added my image to the XCode Project and assigned it to the view.

When I try to compile the app it crashes with the error: "cannot decode object of class (IKImageView)".

The moment I delete the IKImageView it compiles just fine.

My initial thought was that I wasn't importing the required file, but this appears to be a subclass of NSView, so that shouldn't be the problem.

Any thoughts as to what I'm doing wrong?

1

There are 1 best solutions below

0
f91kdash On
  1. Select the project on the left side of Xcode.
  2. You will see the "summary" tab on the right side. Select it.
  3. Add Quartz.framework into "Linked Frameworks and Libraries".