0

我有一个内置于 cocos2d 的 iOS 游戏的源代码,并且正在重新设计它。优化的精灵表由TexturePacker制作,由脚本生成并取自 .plist 文件。

在此处输入图像描述

在重新设计应用程序时,我已经从应用程序文件夹中替换了这些图像,但是在运行应用程序后显示在应用程序中的旧图像。背景、图标文件等普通图像(未通过 TexturePacker 优化)正在正确反映。

此外,在编译应用程序时,我收到以下错误,但应用程序运行时显示较旧的图像::

       /WORK/App_Name/PackTextures.sh: line 12: /usr/local/bin/TexturePacker: 
No such file or directory

    /WORK/App_Name/PackTextures.sh: line 19: /usr/local/bin/TexturePacker: 
No such file or directory

    /WORK/App_Name/PackTextures.sh: line 26: /usr/local/bin/TexturePacker: 
No such file or directory

文件“PackTextures.sh”存在于上述目录中。我的问题是:如何替换 TexturePacker 使用的图像或?

4

1 回答 1

1

It doesn't say your script is missing, it tells you that there is no program TexturePacker in the /usr/local/bin folder:

/usr/local/bin/TexturePacker: No such file or directory

You may on occasion have to delete the app from the device/simulator to force Xcode to transfer the entire app. Sometimes Xcode just doesn't catch up replacing all assets, though if I remember correctly this is mostly related to deleting files from the app.

于 2013-07-11T11:06:43.810 回答