Unity Cloud Build:错误:无法识别的项目

时间:2016-06-30 20:47:33

标签: unity3d build cloud

这是我第一次使用Unity Cloud Build。我正在使用BitBucket和SourceTree,我也尝试过使用GitHub,但我一直都遇到同样的错误:

  

错误:无法识别的项目!请检查您的应用程序配置 - 如果这是一个Unity应用程序,我们希望您的“项目子目录”设置为直接包含ProjectSettings和Assets目录的路径。对于本机应用程序,应将其设置为直接包含项目文件(.xcodeproj,project.properties等)的路径。

项目本身很简单,只需要一个三维角色模型和一个基本的步行动画,以确保事物处于最低限度。如果有人能提供帮助那就太棒了!

这是完整的日志。

1: Running Prebuild steps
2: Removing bvr
3: Successfully uninstalled bvr-1.2.11
4: 1 gem installed
5: done.
6: bvr 1.2.12
7: bvr-api 0.2.4
8: Cloning the remote Git repository
9: Cloning repository ssh://git@bitbucket.org/jsmccloud/gm_animation_test.git
10: Fetching upstream changes from ssh://git@bitbucket.org/jsmccloud/gm_animation_test.git
11: Fetching upstream changes from ssh://git@bitbucket.org/jsmccloud/gm_animation_test.git
12: Checking out Revision d84217f8e82b1bedcd64256ae88a38b9226beb9b (refs/remotes/origin/master)
13: First time build. Skipping changelog.
14: Calculated Workspace Size: 308.73 MiB
15: PATH               | SIZE      
16: /GM_Animation_Test | 308.73 MiB
17: postcheckoutstatus finished successfully.
18: Error: unrecognized project! Please check your app configuration - if this is a Unity application, We expect your "Project Subdirectory" to be set to the path which directly contains the ProjectSettings and Assets directories. For a native app, this should be set to the path which directly contains the project file (.xcodeproj, project.properties, etc).
19: Build step 'Execute shell' marked build as failure
20: postbuildstatus finished successfully.
21: Finished: FAILURE

1 个答案:

答案 0 :(得分:1)

这就是我解决问题的方法:

在我的Unity项目中,我设置了以下设置: 在编辑>项目设置>编辑器

将版本控制模式设置为可见元文件 将资产序列化模式设置为强制文本

保存项目并关闭Unity。显然,当我将文件复制到我的repo目录时,让Unity保持打开状态会导致问题。

现在一切似乎都很好。