• 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: Scripting XCode with Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting XCode with Applescript


  • Subject: Re: Scripting XCode with Applescript
  • From: Rick Ballard <email@hidden>
  • Date: Tue, 30 Aug 2005 12:10:26 -0700

On Aug 30, 2005, at 3:36 AM, Benoit Ogier wrote:

I use Applescript to create bundles that use my app. I just switch to XCode 2.1, and my scripts does not run.
My scripts duplicate a template bundle, and use XCode to set proper values : name of the main target, name of the executable, and name of the product name.


On 2.1, I get the following error in XCode when I try to set the product name :

File: /SourceCache/DevToolsBase/DevToolsBase-620.0.81/pbxcore/ Target.subproj/PBXTarget.m
Line: 2361
Object: <PBXNativeTarget:0x0607f090>
Method: setProductName:


Don't invoke this method when build configurations are enabled.

Thank you for finding and reporting this problem. In Xcode 2.1 we now use the "PRODUCT_NAME" build setting to determine the product name, rather than the old "product name" target property. This allows you to use a different product name for each build configuration, if you wish.


In your script, instead of saying:
set the product name of tar to dstname
try:
set value of build setting "PRODUCT_NAME" of every build configuration of tar to dstname


	- Rick
_______________________________________________
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


References: 
 >Scripting XCode with Applescript (From: Benoit Ogier <email@hidden>)

  • Prev by Date: Re: How do I get around an illegal reference to symbol?
  • Next by Date: Re: How do I get around an illegal reference to symbol?
  • Previous by thread: Scripting XCode with Applescript
  • Next by thread: Interpreting object files symbols
  • Index(es):
    • Date
    • Thread