0

I implemented Parse and ParseUI, and successfully use the PFImageView, load images without any error. But suddenly I encounter:

Unknown class _TtC6Roster11PFImageView in Interface Builder file.

I have searched for similar error, and I found some:

I have tried:

PFImageView.self

...in Application delegate didFinishLaunchingWithOptions but that doesn't seem to work.

Thanks.

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Allan Macatingrao
  • 2,071
  • 1
  • 20
  • 28
  • I managed to solve this issue by switching the target device to simulator. What I have noticed in the xcode's identity inspector, the module name below class name (PFImageView) was replaced to `none`, supposed to be the module name where PFImageView is located. I run, and it worked in simulator, then I changed to actual device and error also gone. Glad if Anyone could explain this issue. Thanks. โ€“ Allan Macatingrao May 19 '15 at 12:06
  • Xcode is a large, complicated application with many bugs. So often many of these seemingly random issues can be temporarily solved by restarting Xcode. โ€“ picciano May 19 '15 at 13:25

1 Answers1

0

Most likely the bad reference is due to Xcode storing bad IB data. You will experience similar issues if you delete IB objects (especially Xibs) or if you start working with other people on projects and are pulling/pushing updated code.

One of the simplest things to try (that generally solves these issues) is to perform a clean (build -> clean, or โ‡งโŒ˜K). This "Removes all the product files, as well as any object files (.o files) or other intermediate files created during the build process (glossary)" and works pretty well.

Firo
  • 15,448
  • 3
  • 54
  • 74