• 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
Re: Project dependencies (AppleScript)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Project dependencies (AppleScript)


  • Subject: Re: Project dependencies (AppleScript)
  • From: "David Bernat" <email@hidden>
  • Date: Mon, 19 Dec 2005 16:35:53 -0800

I can't seem to get creation of target dependencies to work, even when all targets are in the same project. Does anyone have a sample of this working?

rock on
dave

On Nov 29, 2005, at 12:56 PM, Rick Ballard wrote:

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: This email sent to email@hidden
  • Follow-Ups:
    • Re: Project dependencies (AppleScript)
      • From: Rick Ballard <email@hidden>
  • Prev by Date: Re: #warning
  • Next by Date: Re: #warning
  • Previous by thread: gcov question
  • Next by thread: Re: Project dependencies (AppleScript)
  • Index(es):
    • Date
    • Thread