1

I'm working on adding an SDK into my project.And I've successfully added it to my project by following the instructions given in the SDK. After that, I need to activate the SDK. To do that I have to Instantiate an object for the .h file(NSObject as a super class) in a view controller.

here my sample code:

UniMag.h

#ifndef UniMag_h
#define UniMag_h
@interface UniMag : NSObject
@end
#endif

And UniMagViewController.m

- (void)viewWillAppear:(BOOL)animated
{
   UniMag *unimagReader = [[UniMag alloc] init];
}

And When I build the app it was failed and showing the error as

enter image description here

And the app is building fine without the allocation. Can anyone help me how to fix this?

Ramakrishna
  • 712
  • 8
  • 26

0 Answers0