iOS error EXC_BAD_ACCESS(code=2,address=0x8)

Q:

Build is succeeded but the app crashes on launch.

Crash report: EXC_BAD_ACCESS(code=2,address=0x8)

The error occurs at line where an instance of PdfViewCtrl is being created. Debugging shows that the possible cause of error is with “setFrame” for the UIView subclass.

**File location in folder :**PDFNet_iOS/Samples/PDFViewCtrlDemo/Source/RootViewController.m (line no. 59).

Same is the case with remaining sample projects also.

Devices Tested: Simulator with iOS 7, iPad with iOS 6"

Please advise on this.

A:

As stated in the release notes, version 6.2.0 requires Xcode 5.1.1. You will get this error if you try to use Xcode 5.0.

Also note that Apple will not accept apps built with Xcode 5.0.x