修复VS Mobile Center错误:发布构建工件失败,错误:未找到PathtoPublish

Joe*_*lin 5 mobile-center visual-studio-app-center

在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
Run Code Online (Sandbox Code Playgroud)

Dan*_*gby 13

要解决此问题,您可以尝试以下操作:

  1. 打开你的项目.
  2. 转到构建设置.
  3. 对于调试信息格式,选择"DWARF with dSYM File".
  4. 提交代码并推送回购.
  5. 再次运行构建.

设置Gif