Sanjay Mangaroliya
Sanjay Mangaroliya

Reputation: 4342

Build Time Error: Receiver type * for for instance message is a forward declaration

When I run my xcode project there is no error and app works perfectly.

But when I Archive it, it gives error like

receiver type *** for instance message is a forward declaration

Upvotes: 9

Views: 3143

Answers (1)

Desmond Hume
Desmond Hume

Reputation: 8607

  1. Locate the .h file where you are using @class *** where *** is the receiver type from the error message.
  2. Go to the .m file of the same name and make sure that you've imported the .h file or framework where *** type is declared.

Upvotes: 7

Related Questions