Mailing Lists: Apple Mailing Lists

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

Project dependencies (AppleScript)



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to 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.