绘制3D立方体并旋转它

时间:2013-08-07 13:37:15

标签: objective-c xcode 3d download cube

我想绘制一个3D立方体并旋转它。我在这里找到了一个项目(Where to start openGL ES to create and rotate a cube in an iPhone?),但有4个错误: /用户/ Zyage /库/开发商/ Xcode中/ DerivedData / CubeExample -

  

cpuqdsorzrsxfcckeaidfhlprjed / Build / Intermediates / CubeExample.build / Debug-iphonesimulator / CubeExample.build / Script-BC9587F7117F8CF400BBB1C8.sh:第4行:   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool:   没有相应的文件和目录   /Users/Zyage/Library/Developer/Xcode/DerivedData/CubeExample-cpuqdsorzrsxfcckeaidfhlprjed/Build/Intermediates/CubeExample.build/Debug-iphonesimulator/CubeExample.build/Script-BC9587F7117F8CF400BBB1C8.sh:5行:   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool:   没有相应的文件和目录   /Users/Zyage/Library/Developer/Xcode/DerivedData/CubeExample-cpuqdsorzrsxfcckeaidfhlprjed/Build/Intermediates/CubeExample.build/Debug-iphonesimulator/CubeExample.build/Script-BC9587F7117F8CF400BBB1C8.sh:line 7:   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool:   没有相应的文件和目录   /Users/Zyage/Library/Developer/Xcode/DerivedData/CubeExample-cpuqdsorzrsxfcckeaidfhlprjed/Build/Intermediates/CubeExample.build/Debug-iphonesimulator/CubeExample.build/Script-BC9587F7117F8CF400BBB1C8.sh:8行:   /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool:   没有这样的文件或目录

你知道吗,我怎么解决它?

1 个答案:

答案 0 :(得分:4)

由于Xcode成为一个单独的应用程序,因此删除了/ Developer文件夹,并将诸如texturetool之类的内容放在Xcode应用程序包中。新的texturetool路径是:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool

你需要进入Build Phases>运行脚本并更改第一行:

TEXTURE_TOOL=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool

要:

TEXTURE_TOOL=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool