• 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
problem with Xcode and applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with Xcode and applescript


  • Subject: problem with Xcode and applescript
  • From: Dmitry Markman <email@hidden>
  • Date: Wed, 10 Jun 2009 18:54:55 -0400

Hi we have 2 years old Xcode applescript related bug
that prevent us to set target dependencies from the applescript

it still isn't fixed even in the latest 10.6 build

please somebody who watches that list to finally to pay some attention :-)

radar #4945250


we're trying to do something like

set posix_project_t_path to "<path_to_the_folder>/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"
set target2 to target "AppleScriptTest2"
end tell
tell target1
make new target dependency with properties {name:"AppleScriptTest2"}
end tell
end tell

Xcode errors with the error
(*Xcode got an error: AppleEvent handler failed.*)

                Also I can see internal error uncaught exception dialog 
Uncaught Exception:
*** -[NSCFArray insertObject:atIndex:]: attempt to insert nil

Stack Backtrace:
The stack backtrace has been logged to the console.

6/10/09 6:50:20 PM Xcode[1715] [MT] Uncaught Exception:
*** -[NSCFArray insertObject:atIndex:]: attempt to insert nil

Backtrace:
  0  0x00007fff82d933e6 __exceptionPreprocess (in CoreFoundation)
  1  0x00007fff83a44537 objc_exception_throw (in libobjc.A.dylib)
  2  0x00007fff82da2e27 +[NSException raise:format:arguments:] (in CoreFoundation)
  3  0x00007fff82da2db4 +[NSException raise:format:] (in CoreFoundation)
  4  0x00007fff846e6342 -[NSCFArray insertObject:atIndex:] (in Foundation)
  5  0x0000000100133a89 -[XCTargetDGSnapshot initWithInformationFromTarget:withBuildState:] (in DevToolsCore)
  6  0x000000010013320a -[XCNativeTargetDGSnapshot initWithInformationFromTarget:withBuildState:] (in DevToolsCore)
  7  0x0000000100133176 -[PBXTarget createDependencyGraphSnapshotWithTargetBuildState:] (in DevToolsCore)
  8  0x0000000100132d7e -[PBXTarget propagateTargetSnapshotIfNeeded] (in DevToolsCore)
  9  0x0000000100132b94 -[PBXTarget propagateTargetSnapshotFromNotificationIfNeeded] (in DevToolsCore)
 10  0x00007fff8471b6e1 __NSFireDelayedPerform (in Foundation)
 11  0x00007fff82d02aa8 __CFRunLoopRun (in CoreFoundation)
 12  0x00007fff82d0106f CFRunLoopRunSpecific (in CoreFoundation)
 13  0x00007fff8348a8be RunCurrentEventLoopInMode (in HIToolbox)
 14  0x00007fff8348a569 ReceiveNextEventCommon (in HIToolbox)
 15  0x00007fff8348a4c4 BlockUntilNextEventMatchingListInMode (in HIToolbox)
 16  0x00007fff849a3142 _DPSNextEvent (in AppKit)
 17  0x00007fff849a2ab3 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
 18  0x00007fff8499cb5b -[NSApplication run] (in AppKit)
 19  0x00007fff8496255a NSApplicationMain (in AppKit)
 20  0x000000010000e97a
 21  0x0000000100001284

-----------------------------------------

In general I can not get any properties of the legitimate target dependency
set dep1 to target dependencies of target1

try
set dp to get item 1 of dep1
name of dp
on error err
log err
end try



In that case it is name but it doesn't work for any property

 I think those problems are related




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: data formatters (still) unreliable?
  • Next by Date: Re: data formatters (still) unreliable?
  • Previous by thread: Re: data formatters (still) unreliable?
  • Next by thread: Xcode as debugger only?
  • Index(es):
    • Date
    • Thread