Adding an "item reference" not a "file reference" to a Link Build Phase
Adding an "item reference" not a "file reference" to a Link Build Phase
- Subject: Adding an "item reference" not a "file reference" to a Link Build Phase
- From: David Hoerl <email@hidden>
- Date: Thu, 19 May 2011 09:43:53 -0400
Xcode 3.2.6
I have a somewhat complex iOS project where application projects include
a static library project we construct. We are using SVN, and it all
works fine.
When we branch, we branch both the app projects and the library project.
I have a nice script now that can do most of the rewiring.
[However, it cannot set the Target dependencies to the included static
library project contents (this is an known old deficiency that
apparently was never fixed).]
I was hoping that I could figure out a way to add the library to the
"Link" build phase. The only reference I can find to it in the Xcode
dictionary is in the contents property (a list) under the included
library project. The items in "contents" are not file references, but
"item references" (the file reference would change based on the build
configuration).
Now I see in a working dictionary that in the "Link" build phase, most
items have a file reference (manually included framework/library) and
that out static library has a "item reference".
Soooo, my question is: is there some magical applescript incantation
that will let me add the item reference from "contents" to the "Link"
phase "build files" list, so I don't have to do it in the GUI?
Thanks, David
_______________________________________________
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