Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 235
Joe Mellin Avatar asked Apr 14 '17 18:04

Joe Mellin


1 Answers

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.

Setup Gif

like image 138
Dan Rigby Avatar answered Oct 22 '22 21:10

Dan Rigby