Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fergusjk

macrumors member
Original poster
Aug 23, 2010
44
0
Ayrshire Coast, Scotland
Hi,

I have a fully functioning iPhone app (developed in debug mode) that I was about to submit to the app store a few minutes ago. But when I tried to create the release binary I got a bunch of errors when attempting build and run.

They all stemmed from these two errors
FBConnect/FBConnect.h: No such file or directory.
FBConnect/FBSession.h: No such file or directory.

In Xcode in the Groups and files window I have the following structure
AppName
FBConnect
Classes
Other Sources
Resources
etc.
And FBConnect.h and FBSession.h are present in FBConnect.

As I say this all works fine in debug mode but it isn't recognising the files in release mode. Does anyone know how to remedy this?

Thanks in Advance.
 
Solved

This error was caused by the old "Copy items into destination group's folder" not being checked when I copied the FaceBook files into xcode initially.

I copied them over using finder and re-imported them into xcode. Everything is working now.

see https://forums.macrumors.com/threads/1025897/ for a similar issue I had relating to this.

I'm definitely making sure that "Copy items into destination group's folder" is checked from now on when importing files... that is twice I've been tripped up :mad:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.