• 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
adding target dependency via applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adding target dependency via applescript


  • Subject: adding target dependency via applescript
  • From: Dmitry Markman <email@hidden>
  • Date: Fri, 28 May 2010 23:16:53 -0400

Hi, 
the following script doesn't work

set posix_project_t_path to "<path_to_the_xcode_project"
set project_t_path to POSIX file posix_project_t_path
tell application "Xcode"
open project_t_path
set my_project to project of active project document
tell my_project
set target1 to target "AppleScriptTest"
set target2 to target "AppleScriptTest2"
end tell
tell target1
make new target dependency with properties {target:target2}
end tell
end tell

Initial project has 2 targets, goal is to add target AppleScriptTest2 to the target AppleScriptTest as a dependency.

what I'm doing wrong?


thanks in advance

Dmitry Markman


 _______________________________________________
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

  • Prev by Date: Re: xcodebuild seems to have trashed my project
  • Next by Date: another -mlong-branch question
  • Previous by thread: Re: xcodebuild seems to have trashed my project
  • Next by thread: another -mlong-branch question
  • Index(es):
    • Date
    • Thread