• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Project dependencies (AppleScript)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Project dependencies (AppleScript)
      • From: Rick Ballard <email@hidden>
  • Prev by Date: Re: Three Level Dependencies between xcode projects still fails in XCode 2.2
  • Next by Date: Where is $(PREFIX_HEADER) supposed to come from?
  • Previous by thread: Re: Is there a "Jump to where I was"?
  • Next by thread: Re: Project dependencies (AppleScript)
  • Index(es):
    • Date
    • Thread