Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve the error of "_OBJC_CLASS_$_PLCrashReport", referenced in iphone

I am creating an application in iphone in which I have imported a framework know as CrashReporter.Framework in my project. And I have imported this framework in my appdelegate and class named as CrashReportViewController.When I run the application it gives me the foll error:

"_OBJC_CLASS_$_PLCrashReport", referenced from:
objc-class-ref-to-PLCrashReport in WordPressAppDelegate.o
objc-class-ref-to-PLCrashReport in CrashReportViewController.o

"_OBJC_CLASS_$_PLCrashReporter", referenced from:
objc-class-ref-to-PLCrashReporter in WordPressAppDelegate.o
objc-class-ref-to-PLCrashReporter in CrashReportViewController.o

What may be the problem?

like image 492
Rani Avatar asked Oct 11 '22 09:10

Rani


1 Answers

Make sure you actually linked the framework to your target application. In xcode 4, click the project file, click your desired target, select the build phases tab, expand link binary with libraries. If you do not see the framework you are trying to use, then click the plus at the bottom of that section navigate to the framework and add.

like image 100
Matt G Avatar answered Oct 14 '22 07:10

Matt G