• 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: Rez tool: SysError 0 during read
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rez tool: SysError 0 during read


  • Subject: Re: Rez tool: SysError 0 during read
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 12 Aug 2009 15:12:15 -0700


On Aug 12, 2009, at 2:58 PM, Howard Moon wrote:

On Aug 12, 2009, at 1:43 PM, Howard Moon wrote:

I'm moving some code to Leopard and Xcode 3, and am having trouble. Everything's compiling, but then I get an error in a script phase that uses the Rez tool. The error is:

/Developer/Tools/Rez - SysError 0 during read

The script code that is executing is inserting an icon (so that it overrides the default icon for the file type, which is an audio plug-in bundle), like this:

ICON_RES= ${SRCROOT}/myapp_res.icns
echo "read 'icns' (-16455) \"${SRCROOT}/myapp.icns\";" | /Developer/ Tools/Rez -o ${ICON_RES};

Oh, I forgot to include this line in my email (which never runs correctly either, when I get that error on the above line):


cp "${ICON_RESOURCE}" "${TARGET_BUILD_DIR}/${PRODUCT_NAME}.$ {WRAPPER_EXTENSION}/"$(echo -ne "Icon\r")


Any ideas what to do about this?


OK, one workaround is to change the script to

cd ${SRCROOT};
echo "read 'icns' (-16455) \"myapp.icns\";" | /usr/bin/Rez -o myapp_res.icns


Apparently the 'read' command is having trouble reading from absolute paths in Snow Leopard, while reading relative to the current directory is working fine.

Chris
_______________________________________________
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: 
 >Rez tool: SysError 0 during read (From: Howard Moon <email@hidden>)
 >Re: Rez tool: SysError 0 during read (From: Howard Moon <email@hidden>)

  • Prev by Date: use Xcode to debug Gromacs
  • Next by Date: Changing location of pbxindex files?
  • Previous by thread: Re: Rez tool: SysError 0 during read
  • Next by thread: Why does gdb fail so often?
  • Index(es):
    • Date
    • Thread