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 5847977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:47:42+00:00 2026-05-22T12:47:42+00:00

I have a directory of source files (.h and .m) that are shared between

  • 0

I have a directory of source files (.h and .m) that are shared between multiple projects. I’m not building them as a static library; instead, I just include the source in each project.

Previously, I was copying the source into each project independently, but now, I’d like to move to having a single directory that has all of those shared files it, and include a folder reference to them in each XCode project that uses them.

Including them as a folder reference (blue folder) is no problem, and I can add the path to the header includes so that the files in the project can see them. But they’re not being built, and thus I’m getting link errors.

How do I get Xcode to build the source in the external directory?

  • 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-22T12:47:42+00:00Added an answer on May 22, 2026 at 12:47 pm

    folder references don’t work like that in xcode.

    this is exactly what an external target (e.g. static library) is for… seems strange that you would choose to duplicate (a portion of) the maintenance for every project. with a library, you can also reduce the build and indexing times (assuming the build settings match some of the time).

    if you insist that a static library is a bad idea… you can approximate what you want by creating a custom build script phase for your target (you will need to configure a script, rather than passing the xcode folder reference as input).

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

Sidebar

Related Questions

This is a dumb newbie question, but one that is driving me nuts. I
I have been looking all over the Internet for an answer to this question
I am working on an enormous project (the project) which is open-source, and I
_ I had problem with installing the mod_wsgi.I have found the solution as below
I've written an application on c++ with QT providing GUI and database connectivity, and
I need to compare two lists where each list contains about 60,000 objects. what
Is there a way to programmatically use TortoiseSVN with C# or its related processes
I'm wondering how Visual Studio, other IDE's, and any other sort of circumstances (ie.
I am trying to create a gem with a generator for Rails 3 (beta

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.