6

我目前正在完成一本iphone 3d 编程书

这本书说将以下 python 代码添加到 xcode 的构建阶段,以运行提供的纹理工具。

图书报价

一个。将 shell 保留为 /bin/sh。

湾。直接在脚本框中输入:

BIN=${PLATFORM_DIR}/../iPhoneOS.platform/Developer/usr/bin  
INFILE=${SRCROOT}/Textures/Grid16.png 
OUTFILE=${SRCROOT}/Textures/Grid16.pvr 
${BIN}/texturetool -m -f PVR -e PVRTC $INFILE -o $OUTFILE

C。将此添加到输入文件:

$(SRCROOT)/Textures/Grid16.png

将此添加到输出文件:

$(SRCROOT)/Textures/Grid16.pvr

但是,这样做时,我收到以下消息。

Failed to load image
Failed to perform Encode
Command /bin/sh failed with exit code 1

任何人都可以对此有所了解吗?

4

2 回答 2

1

您的目录中有空格!

于 2011-07-28T19:12:52.150 回答
0

将 $(SRCROOT) 替换为 ${SRCROOT}

于 2012-06-07T16:24:07.983 回答