Hi
suppose I have a project that have 2 targets
and first target has second target as a dependency
then when I try to run the following script
set posix_project_t_path to "/Users/dima/Projects/AppleScript/AppleScriptTest/AppleScriptTest.xcodeproj"
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"
end tell
set dep1 to get target dependencies of target1
log (get class of dep1)
log (get length of dep1)
set dp to get item 1 of dep1
log dep1
log dp
end tell
I'm getting an error (at the line "log dp")
(*list*)
(*1*)
(*target dependency id 32DAB06A0FB789E5000C9701 of target id DA7A5E150B4C3DE800BB276E of project AppleScriptTest*)
(*target dependency id 32DAB06A0FB789E5000C9701 of target id DA7A5E150B4C3DE800BB276E of project AppleScriptTest*)
--> error number -1728 from «class tard» id "32DAB06A0FB789E5000C9701" of «class tarR» id "DA7A5E150B4C3DE800BB276E" of «class proj» "AppleScriptTest"
I can not check any property of the item 1 of the dep1 list
if I try to iterate with
repeat with d in dep1
log (class of d)
end repeat
I'm getting the similar error (at the line log (class of d) )
thanks for any insight into that situation