Fix VS Mobile Center Error: Publish build artifacts failed with error: Not found PathtoPublish

限于喜欢 提交于 2019-12-07 04:26:22

问题


When starting a build in Visual Studio App Center I am getting this error in the build logs. How do I fix this?

    ==============================================================================
    ##[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

回答1:


In order to fix this issue you can try the following:

  1. Open your project.
  2. Go to Build Settings.
  3. For Debug Information Format select "DWARF with dSYM File".
  4. Commit code and push to repo.
  5. Run build again.



来源:https://stackoverflow.com/questions/43417365/fix-vs-mobile-center-error-publish-build-artifacts-failed-with-error-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!