Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-04-2010, 07:26 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 1
fluvly is on a distinguished road
Default Facebook Connect - "No such file or directory"

Hello everyone - I've been trying to add Facebook to an iPhone application, with no success. I followed all the instructions, looked up the problem on the internet, but I still can't find a solution to this.

The line
Code:
#import "FBConnect/FBConnect.h"
gives this error: "No such file or directory".

These are the steps I followed:

1) I downloaded the facebookconnect files to the "iphonedev" folder, which also contains my project folder;

->iphonedev
->->testproject
->->facebookconnect

2) I opened the xcodeproj file in the facebookconnect/src folder and copied the FBConnect group to my project (without copying the items into the destination group's folder).

3) I changed the Header Search Path in Project Settings to "../facebookconnect/src";

4) After looking on the internet, I changed the Header Search Paths again by right clicking the project in Targets and then going to "Get Info" - now the Header Search Paths in both locations are the same;

5) I made sure both times that "All Configurations" was selected;

6) I tried changing the relative path to the absolute path "/Users/fluvly/iphonedev/facebookconnect/src".

7) I tried multiple times to change the relative path to something else.

Nothing worked and I'm still getting the same error.

The FBConnect.h file just contains 5 includes:

Code:
#include "Facebook.h"
#include "FBDialog.h"
#include "FBLoginDialog.h"
#include "FBRequest.h"
#include "SBJSON.h"
I tried replacing the line
Code:
#import "FBConnect/FBConnect.h"
in testproject.h to
Code:
#include "Facebook.h"
#include "FBDialog.h"
#include "FBLoginDialog.h"
#include "FBRequest.h"
#include "SBJSON.h"
and the error magically disappears. It all works fine that way.

Even though I found a way around it, it really bothers me that it doesn't work in the "official" way. Maybe I have to change some xcode setting? Should the header search path be relative to the testproject or to the xcode folder?

If someone has any idea about why this happens, please help!

Thanks,

Flaviana
fluvly is offline   Reply With Quote
Old 09-04-2010, 12:25 PM   #2 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 920
spiderguy84 is on a distinguished road
Default

Same for me. Had to delete the fbconnect/ in front of each header.
__________________
My latest app...i Miss Mommy
spiderguy84 is offline   Reply With Quote
Old 11-29-2010, 06:29 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2009
Posts: 28
mohan.agadkar is on a distinguished road
Default

I too tried this for some time and finally imported the below line

#import "FBConnect.h"

instead of #import "FBConnect/FBConnect.h"

voila! it worked like a charm.
mohan.agadkar is offline   Reply With Quote
Reply

Bookmarks

Tags
facebook connect, header search paths, iphone sdk, no such file or directory, xcode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 345
11 members and 334 guests
bignoggins, carlandrews, flamingliquid, hzwegjxg, ilmman, iram91419, linkmx, nadav@webtview.com, Objective Zero, stanny, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,656
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, iram91419
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:45 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0