Re: Xcode does not rebuild app when source file updated in dependent static library
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