Import statement not working in Release mode.

Discussion in 'iOS Programming' started by fergusjk, Oct 7, 2010.

  1. fergusjk macrumors member

    Joined:
    Aug 23, 2010
    Location:
    Ayrshire Coast, Scotland
    #1
    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.
     
  2. fergusjk thread starter macrumors member

    Joined:
    Aug 23, 2010
    Location:
    Ayrshire Coast, Scotland
    #2
    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 http://forums.macrumors.com/showthread.php?t=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:
     

Share This Page