SpaceDust__
SpaceDust__

Reputation: 4914

XCode can't locate #import "ASIHTTPRequest.h" IOS 4.3

I am following a tutorial in order to connect my app to facebook. When I import JSON and ASIHTTPRequest libraries I cant call headers to use function in that libraries

import problem

I have added "${SRCROOT}" with quotes two the Header Search Path Debug and Header Search Path Release

settings

It didnt work.

i have also looked at this to questions but couldnt make it done ASIHTTPRequest; installation issues

Adding system header search path to Xcode

thanks in advance for any help.

Upvotes: 0

Views: 1182

Answers (2)

SpaceDust__
SpaceDust__

Reputation: 4914

I cant believe how dummy Xcode works I have just deleted all JSON, Classes and Reachability folders and copied again all the headers without the folders now it works. I can't understand why headers work outside offolders? but

anyways if anyone tries all other solution and it doesnt work maybe this solution can work. enter image description here

Upvotes: 0

Steven Fisher
Steven Fisher

Reputation: 44876

You need to add the folder containing the AFNetworking headers to User Header Search Paths.

It looks like that would be $(SRCROOT)/AFNetworking/AFNetworking for you.

(Also, same applies to your JSON library.)

Upvotes: 2

Related Questions