Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 808617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:35:24+00:00 2026-05-15T00:35:24+00:00

I’m new to iPhone development and I’m still getting familiar with the Mac dev

  • 0

I’m new to iPhone development and I’m still getting familiar with the Mac dev environment, including Xcode. I want to add some 3rd party code to my iPhone project, but when I add the “existing files” to my Xcode project, I’m presented with a dialog box that has far too many options that I don’t understand and, as such, my project isn’t working. When I #import headerfilename.h, I get a build error that reads headerfilename.h: No such file or directory.

alt text http://joecrotchett.com/images/misc/fileadd.jpg

  1. Can anyone explain to me what all these options mean or give me a link to some documentation that can? I’m having a hard time finding anything in Apple’s docs.
  2. Which options do I want to choose to add existing source code files to my Xcode project? I should note that the source code files that I’m trying to add are located in my project/Classes/frameworkname/ directory.
  3. After they’re added, do I need to reference this new code directory in my project settings anywhere (i.e. some kind of header file directory variable)?

Thanks so much!

Update: I found the following answers/responses on the apple dev forums that were very useful and helped me fix my issue…

To make it simple :
– if you do not check the copy option, the file stay where it is.
– if you check it, it is copied in your project folders In the first case
(what it seems you are doing) you need
to tell the compiler that the header
files are in another directory :
– project info -> build -> search paths -> User Header Search Path : add
the directory from where you took the
header file Hope this will help


You have discovered the most confusing
dialog box that ever came out of
Cupertino. Six years of Xcode, and
this thing still is partly a mystery
to me. To even get that far, I had to
make many test projects to try and
reverse-engineer what this thing does.
The “Copy” box means that it will copy
the files as they are right now, into
the project. If this box is not
checked, then it just references those
files during a build and copies them
as they are at THAT time. For source
code, you want the Copy box checked.
The “relative to” is a total mystery
to me and I can’t help you with that.
I usually leave it however it is
already set. Does it mean relative to
where they are on disk, or the
arrangement in Xcode, or in the
bundle? Who knows. The last 2 radio
buttons SEEM to mean that it will
either re-create the folder structure
of the folder you are adding, or just
put “fake” folders in Xcode that point
to the real folders. This is probably
your problem – you are adding source
code that is not all at the top level,
and when it goes to find it, it does
not re-create the hierarchy. Others
can supply a better way, hopefully,
but what I would do is put all of the
source in one folder and add that,
using the Copy box. Then in Xcode you
can make whatever bogus folders you
want and put the source file names in
those fake folders.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T00:35:25+00:00Added an answer on May 15, 2026 at 12:35 am

    Copy items into destination group’s
    folder (if needed)

    Well, only if you want it to copy the files. If you are happy with their existing location and don’t want it to copy them, don’t select it (that’s what I do).

    Reference Type:

    A total mystery to me

    Text Encoding

    Self explanatory

    Recursively create groups for any
    added folders Create Folder References
    for any added folders

    Leave this as the default and then organize the folders in your Xcode project any way you want.

    Add to targets

    If you add an additional target to your project, e.g. for iPhone vs. iPad versions, then not noticing that it has by default added the files to just one of them (at random?) can cause headaches.

    Also, make sure you add the new header directory to your search paths in Project Settings > Build > Search paths. I think that’s what’s causing your problem.

    Hope this helps, I remember how confusing this was to me at first.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want use html5's new tag to play a wav file (currently only supported
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I want to construct a data frame in an Rcpp function, but when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.