0

私は cocos2d でビルドされた iOS ゲームのソース コードを持っていて、それをスキン変更する作業を行っています。最適化されたスプライト シートは、スクリプトによって生成され、.plist ファイルから取得されるTexturePackerによって作成されます。

ここに画像の説明を入力

アプリのスキンを変更しているときに、アプリフォルダーからこれらの画像を置き換えましたが、アプリを実行した後、アプリに表示される古い画像。background や icon ファイルなどの通常の画像 (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 に答える