Project dependencies (AppleScript)
Project dependencies (AppleScript)
- Subject: Project dependencies (AppleScript)
- From: "David Bernat" <email@hidden>
- Date: Mon, 28 Nov 2005 15:27:03 -0800
I'm trying to add a dependent subproject to an XCode project using
AppleScript. Here's what I've got:
tell application "XCode"
-- open both master.xcodeproj and sub.xcodeproj
tell project "master"
tell root group
make new file reference with properties
{ name: "sub.xcodeproj", full path: "/Dev/sub.xcodeproj" }
end tell
set theSubTarget to target "sub" of project "sub" of application
"XCode"
tell target "master"
make new target dependency with properties
{ target: theSubTarget }
end tell
end tell
end tell
The "make new target dependency" line is failing with an
NSInternalScriptError. A target dependency *is* created in the
appropriate target, but it appears to be blank.
I'm guessing this is an XCode bug, but I'm hoping (please!) that it
is not, and I'm just doing something wrong. Is there anything else I
should try, or any workarounds I could employ? Thanks in advance!
rock on
dave
email@hidden
_______________________________________________
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