I installed Xcode 4.5 today and I have the following problem:
I use workspaces to develop a library and app simultaneously. When I change something in the library and build the app, the library gets rebuilt with the new changes. This works fine in Xcode 4.3/4.4.
However, since Xcode 4.5 this doesn’t seem to work anymore. I always have to “Clean” the project, otherwise changes are not visible, although the targets are built in correct order (lib, app).
Has anyone experienced the same?
Does a workaround exist?
-Alexander
Here’s one possible cause of this (there’s probably others):
Make sure the Identity and Type inspector is showing and select the libWhatever.a file in your application’s project (not the library). If you see Location: Relative to Project, this is your problem.
Honestly, you’re probably better off editing the pbxproj directly. Your patch will look something like this:
I found this answer here:
What's the correct way to configure XCode 4 workspaces to build dependencies when needed?