namespace XGame.Editor.Build { /// /// 部分枚举值保持和UnityEditor.Build.Reporting.BuildResult一致 /// public enum BuildErrorCode { /// /// Unity BuildPlayer 专用,自定义Command禁止使用 /// Indicates that the outcome of the build is in an unknown state. /// Unknown, /// /// Unity BuildPlayer 专用,自定义Command禁止使用 /// Indicates that the build completed successfully. /// Succeeded, /// /// Unity BuildPlayer 专用,自定义Command禁止使用 /// Indicates that the build failed. /// Failed, /// /// Unity BuildPlayer 专用,自定义Command禁止使用 /// Indicates that the build was cancelled by the user. /// Cancelled, #region 自定义Command错误码,初始值从1000起 /// /// 自定义Command执行完成 /// CmdCompleted = 999999, /// /// 打包配置文件丢失 /// ConfigFileMissing = 1000, /// /// 输出路径无效 /// OutputPathInvalid, /// /// 打包命令无效 /// CommandExecuteFailed, /// /// 打包AB文件失败 /// BuildAssetBundleFailed, /// /// 分布式打包AB主节点失败 /// DistributedMainNodeFailed, /// /// 分布式打包子节点失败 /// DistributedChildNodeFailed, /// /// 序列化配置信息失败 /// SerializeConfigsFailed, /// /// 场景列表为空 /// NoActiveScene, /// /// Version名不符合规范 /// BundleVersionFailure, /// /// i18n转换Key失败 /// I18NSwapKeyFailed, /// /// 生成配置初始化失败 /// GenPackageConfigsInitFailed, /// /// 生成配置失败 /// GenPackageConfigsFailed, /// /// 拷贝资源失败 /// CopyAssetsFailed, /// 打包后处理错误 /// BuildPostProcessorError, /// /// Command未知错误 /// CmdUnknownError, /// /// 自定义Command通用错误码 /// CmdCustomError, /// /// 脚本编译失败 /// CompileFailed = 2000, /// /// Unity编译时拷贝Assembly失败 /// 该错误需要打包机重启一次Unity尝试二次打包 /// CopyAssemblyFailed = 2001, /// /// 构建hybridclr /// BuildHybridclrError, /// /// 编译iOS特殊il2cpp /// CompileIl2CppForHybridclrError, /// /// 加密global-metadata.dat失败 /// EncryptGlobalMetadataError, #endregion } }