Fix VS Mobile Center error: failed to publish assembly artifacts with error: PathtoPublish not found

When I run the build in the Visual Studio App Center, I get this error in the build logs. How to fix it?

============================================================================== ##[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 
+5
source share
1 answer

To fix this problem, you can try the following:

  • Open the project.
  • Go to build settings.
  • For the debug information format, select "DWARF with dSYM file".
  • Commit the code and click on the repo.
  • Run assembly again.

Gif customization

+13
source

Source: https://habr.com/ru/post/1266742/


All Articles