Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Project dependencies (AppleScript)



Unfortunately, you can currently only add target dependencies via AppleScript when the targets are both in the same project. Thank you for pointing out this bug; I don't know of any workarounds at this time.

	- Rick

On Nov 28, 2005, at 3:27 PM, David Bernat wrote:

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!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Project dependencies (AppleScript) (From: "David Bernat" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.