【问题标题】:Unity Cloud Build: Error: Unrecognized ProjectUnity Cloud Build:错误:无法识别的项目
【发布时间】:2016-11-03 03:09:05
【问题描述】:

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

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

项目本身很简单,只有一个 3D 角色模型和一个基本的步行动画,以确保事情最少。如果有人可以提供帮助,那就太好了!

这是完整的日志。

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

【问题讨论】:

  • 你的仓库中是否有项目设置。
  • 你的仓库中必须有 assets, projectsetting
  • 是的,我有资产、项目设置和库目录。我基本上将包含我所有项目文件和资产的整个目录拖到了 github 目录中。所以一切都应该在那里。
  • 您的项目顶层是否包含资产和项目设置?那就是你没有一个文件夹,然后在里面,需要的文件夹。
  • 拖拽是什么意思?你使用 git gui 客户端?

标签: unity3d build cloud


【解决方案1】:

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

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

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

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

现在似乎一切正常。

【讨论】:

    猜你喜欢
    • 2018-10-07
    • 2022-01-25
    • 2021-01-21
    • 2014-06-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-14
    相关资源
    最近更新 更多