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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:03:00+00:00 2026-06-13T05:03:00+00:00

I have encountered an issue with Xcode’s implicit dependency checking and static libraries, which

  • 0

I have encountered an issue with Xcode’s implicit dependency checking and static libraries, which I believe to be a bug in Xcode (and have reported as such); I’m raising it here in case anyone else has any ideas about it. In brief, if an application depends on a static library, and a source file that is a component of the library is modified, Xcode rebuilds the library but does not relink the application, so the change is not seen in the application.

More specifically: I have a workspace that contains an application project and a static library project, such that the application calls a function in the library (and the result is visible in the application: e.g. the function returns text that is displayed in a label in the application). The static library is included in the “Link Binary with Libraries” build phase of the application target. Building from scratch causes the library to be built first, then the application, as expected (in other words, Xcode has detected the dependency).

Now, if I modify the text of the message in the library source file, then click the “build and run” button, Xcode correctly rebuilds the library, but fails to relink the application, so when the application runs, the unmodified message text is displayed.

I am running Xcode 4.5.1 under Mac OS X 10.8.2. In the scenario I reported, the application is an iOS single-view application and the static library function being called happens to be implemented in C++.

Currently I know of no workaround other than cleaning and rebuilding. Has anyone else seen this, or has any other insight? Thanks in advance.

  • 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-06-13T05:03:01+00:00Added an answer on June 13, 2026 at 5:03 am

    I had originally searched SO without success, but I must not have phrased my searches properly. However, while writing up my question, the “Similar Questions” list offered much better results, and I was able to find a workaround. In brief:

    • select the library in the Project Navigator
    • find the location in the File Inspector; it is probably “Relative to Group”
    • change it to “Relative to Build Products”

    This fixed the issue in my test case; now the application is correctly rebuilt whenever the library’s source code is modified. I did not find it necessary to manually edit the project.pbxproj file as suggested.

    I would still claim this is a bug in Xcode, but at least now I have a workaround.

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

Sidebar

Related Questions

I have encountered a strange issue while listing files in a subtree which are
I have encountered an interesting issue in which I have my master trying to
I am implementing instrumentation within an application and have encountered an issue where the
I'm getting started with Qt and have encountered the following issue: when i compile
I have encountered what appears to be a bug with the YAML parser. Take
I have encountered a problem in one of my Java projects, which causes bugs.
Recently I have encountered an issue with Scribd where searching via Scribd API (docs.search)
i have encountered a very strange issue: i use json.dump to write a file
We have encountered a situation with Hg where no matter which way we merge
I have encountered an issue with Firefox that if border-box is applied to an

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.