Reputation: 4914
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
I have added "${SRCROOT}" with quotes two the Header Search Path Debug and Header Search Path Release
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
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.
Upvotes: 0
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