• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode does not rebuild app when source file updated in dependent static library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode does not rebuild app when source file updated in dependent static library


  • Subject: Re: Xcode does not rebuild app when source file updated in dependent static library
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 19 Oct 2012 09:13:58 -0700


On Oct 19, 2012, at 8:54 AM, Russell Finn <email@hidden> wrote:

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 have projects with these kinds of dependencies, and have not seen this problem.
It sounds like Xcode doesn’t realize that the static library it’s linking into the app is the product of the library target.
How did you add the library to the application’s build? In my experience the most reliable way is to add it using the “+” button in the Link Binary With Libraries build phase list, and then choosing the library from the list of the project’s products.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode does not rebuild app when source file updated in dependent static library
      • From: Michael Rawdon <email@hidden>
    • Re: Xcode does not rebuild app when source file updated in dependent static library
      • From: Russell Finn <email@hidden>
References: 
 >Xcode does not rebuild app when source file updated in dependent static library (From: Russell Finn <email@hidden>)

  • Prev by Date: Re: Xcode does not rebuild app when source file updated in dependent static library
  • Next by Date: Re: Xcode does not rebuild app when source file updated in dependent static library
  • Previous by thread: Xcode does not rebuild app when source file updated in dependent static library
  • Next by thread: Re: Xcode does not rebuild app when source file updated in dependent static library
  • Index(es):
    • Date
    • Thread