1

我正在开发一个使用 cocos3d 的 ios 6.1 应用程序,我有一个肯定在包中的文件,即“CC3TexturableMaterial.vsh”,但是在应用程序需要该文件的某个时间点,它崩溃并显示以下错误:

[***ERROR***] Could not load GLSL file '/Users/macbook/Library/Application Support/iPhone Simulator/6.1/Applications/3505ADEC-C70B-490F-9011-A433D85C2D66/3D.app/CC3TexturableMaterial.vsh' because it could not be found

这意味着该文件不在模拟器的 .app 中。有没有人遇到过类似的问题?

4

3 回答 3

5

当文件未明确复制到捆绑包时,可能会发生这种情况。

要检查这一点,请确保它出现在项目构建设置的Build Phases“ ->”部分中。Copy Bundle Resources(要查看主要构建设置,请从左侧窗格中选择“ Project”->“ ”)。Target

于 2013-07-16T09:33:59.430 回答
0

只需打开终端

pod deintegrate

接着

pod install
于 2016-12-20T14:41:09.300 回答
-1

Just Follow Below Step:

1)Select your project from the left panel.

2) Select the target and then select Build Phases

3) There you should fin a button called Add Build Phase (Bottom right side)

4) There will appear a box where you have to select the files (there's a little +sign). And be sure you selected Destination: Products directory

Build the project, run it and now it should work !!

于 2013-07-16T09:28:01.357 回答