joshdholtz / jsonapi-ios

A library for loading data from a JSON API datasource.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Cannot find interface declaration for NSObject in JSONAPIErrorResource.h (Xcode 7)

ilTofa opened this issue · comments

I got this error while using the library "as-is" (no CocoaPods) with Xcode 7. The error could be coming from the absence of .pch file in the project.

The error can be fixed by adding the declarations for NSObject to the offending header.
i.e.: adding

@import Foundation;

to JSONAPIErrorResource.h

@ilTofa Sorry about just seeing this issue! Must have missed this in my inbox 😔 This should get fixed in #26 and I will be pushing a new version out to CocoaPods today for you with this