Fix VS Mobile Center Error: Publish build artifacts failed with error: Not found PathtoPublish
Fix VS Mobile Center Error: Publish build artifacts failed with error: Not found PathtoPublish
在 Visual Studio App Center 中开始构建时,我在构建日志中收到此错误。我该如何解决这个问题?
==============================================================================
##[error]Publish build artifacts failed with error: Not found PathtoPublish: /Users/ci/agent/vstsagent/_work/1/a/symbols
##[section]Finishing: Publish symbols
##[section]Starting: Create distribution
==============================================================================
Task : Mobile Center Upload
Description : Upload mobile app packages to Visual Studio Mobile Center
Version : 0.115.1
Author : Microsoft Corporation
Help : Upload mobile app packages to Visual Studio Mobile Center
==============================================================================
##[warning]Cannot find any file based on /Users/ci/agent/vstsagent/_work/1/a/symbols.
##[error]TypeError: Cannot read property 'forEach' of null
##[section]Finishing: Create distribution
##[section]Starting: Post Job Cleanup
要解决此问题,您可以尝试以下操作:
- 打开您的项目。
- 转到构建设置。
- 对于调试信息格式 select“带有 dSYM 文件的 DWARF”。
- 提交代码并推送到 repo。
- 运行 重新构建。
在 Visual Studio App Center 中开始构建时,我在构建日志中收到此错误。我该如何解决这个问题?
==============================================================================
##[error]Publish build artifacts failed with error: Not found PathtoPublish: /Users/ci/agent/vstsagent/_work/1/a/symbols
##[section]Finishing: Publish symbols
##[section]Starting: Create distribution
==============================================================================
Task : Mobile Center Upload
Description : Upload mobile app packages to Visual Studio Mobile Center
Version : 0.115.1
Author : Microsoft Corporation
Help : Upload mobile app packages to Visual Studio Mobile Center
==============================================================================
##[warning]Cannot find any file based on /Users/ci/agent/vstsagent/_work/1/a/symbols.
##[error]TypeError: Cannot read property 'forEach' of null
##[section]Finishing: Create distribution
##[section]Starting: Post Job Cleanup
要解决此问题,您可以尝试以下操作:
- 打开您的项目。
- 转到构建设置。
- 对于调试信息格式 select“带有 dSYM 文件的 DWARF”。
- 提交代码并推送到 repo。
- 运行 重新构建。