Сбой установки Visual Studio в MA C OS X - PullRequest
0 голосов
/ 08 апреля 2020

Сначала загрузил установщик Visual Studio из https://visualstudio.microsoft.com/vs/mac/ и запустил процесс загрузки и установки.

В конце процесса установки возникла следующая ошибка. все было запущено с правами администратора.

Installation of 'Visual Studio' failed with exception.
MacInstaller.Models.Installer.InstallException: Failed to copy application directory to its destination by NSFileManager. 'path': /private/tmp/dmg.lNyJgV/Visual Studio.app, 'applicationPath': /Applications/Visual Studio.app
  at MacInstaller.Core.Installer.InstallationProvider.InstallApp (System.String path, System.Boolean needsPrivileges) [0x00163] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/InstallationProvider.cs:254 
  at MacInstaller.Core.Installer.InstallationProvider.InstallDmg (System.String path, System.Boolean needsPrivileges) [0x00176] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/InstallationProvider.cs:144 
  at MacInstaller.Core.Installer.InstallationProvider.Install (System.String path, System.Boolean needsPrivileges) [0x00044] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/InstallationProvider.cs:49 
  at MacInstaller.Core.Installer.BaseSoftwareItem.Install (System.String filePath) [0x00000] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/SoftwareItems/BaseSoftwareItem.cs:132 
  at MacInstaller.Core.Installer.BaseSoftwareItem.Install (MacInstaller.Models.Downloader.DownloadServiceWorkItem download) [0x000a1] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/SoftwareItems/BaseSoftwareItem.cs:123 
  at MacInstaller.Core.Installer.BaseSoftwareItem.Install () [0x00007] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/SoftwareItems/BaseSoftwareItem.cs:107 
  at MacInstaller.Core.Installer.IDEBaseSoftwareItem.Install () [0x00000] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/SoftwareItems/IDEBaseSoftwareItem.cs:50 
  at MacInstaller.InstallationViewController.InstallItems () [0x000bf] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Views/Pages/InstallationViewController.cs:361 

Сейчас я целый день пытаюсь настроить это с различными комбинациями.

Среда разработки

  • Версия ОС: Mojave (10.14.5)
  • Версия xCode: 10.2.1
  • Visual Studio для ma c v8.5.2 (сборка 13)
  • . NET Core SDK: 3.1.201
  • . NET Core Runtime: 2.1.16

То, что было сделано до сих пор

ссылки

Ничто из вышеперечисленного не работает для меня, любые предложения будут оценены .

1 Ответ

0 голосов
/ 17 апреля 2020

Найден обходной путь для этого.

  1. Установщик Visual Studio для Ma c загрузит все компоненты, необходимые для установки Visual Studio, как только вы пройти следующий экран, который будет храниться в вашем /Users/user-name/Library/VisualStudioInstaller/downloads

enter image description here


Вы можете напрямую перемещаться здесь, используя ярлык cmd+shift+g

enter image description here


Затем запустите установку и дождитесь сбоя. найдите отчет журнала в /Users/user-name/Library/Logs/VisualStudioInstaller, который содержит все пройденные и неудачные шаги. В зависимости от точки сбоя вы можете выбрать, что делать.

...
[2020-04-08 09:42:00.706] [inf] Software item 'Mono Framework' installed successfully.
[2020-04-08 09:42:00.707] [inf] Installing software item 'Visual Studio'
[2020-04-08 09:42:58.159] [dbg] Is '/Applications' writable? - True
[2020-04-08 09:42:58.955] [dbg] Copying application via 'NSFileManager'
[2020-04-08 09:55:17.286] [inf] Check xcode dependencies .
[2020-04-08 09:55:17.420] [inf] Enqueueuing and starting downloads.
[2020-04-08 09:55:17.420] [inf] Start the installation process.
[2020-04-08 09:55:17.422] [inf] Installing software item 'Visual Studio'
[2020-04-08 09:55:17.878] [dbg] Is '/Applications' writable? - True
[2020-04-08 09:55:17.879] [dbg] Existing app will be backed up in '/Applications/Visual Studio (old).app'
[2020-04-08 09:55:17.879] [dbg] Making backup of application via `NSFileManager`.
[2020-04-08 09:55:17.970] [err] Copying process failed with 'The file “switch_thumb_activated_holo_dark.9.png” doesn’t exist.'
[2020-04-08 09:55:18.553] [dbg] Copying application via 'NSFileManager'
[2020-04-08 09:55:18.873] [err] Copying process failed with 'The file “Info.plist” doesn’t exist.'
[2020-04-08 09:55:18.956] [exc] Installation of 'Visual Studio' failed with exception.
 MacInstaller.Models.Installer.InstallException: Failed to copy application directory to its destination by NSFileManager. 'path': /private/tmp/dmg.lNyJgV/Visual Studio.app, 'applicationPath': /Applications/Visual Studio.app
  at MacInstaller.Core.Installer.InstallationProvider.InstallApp (System.String path, System.Boolean needsPrivileges) [0x00163] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/InstallationProvider.cs:254 
  at MacInstaller.Core.Installer.InstallationProvider.InstallDmg (System.String path, System.Boolean needsPrivileges) [0x00176] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/InstallationProvider.cs:144 
  at MacInstaller.Core.Installer.InstallationProvider.Install (System.String path, System.Boolean needsPrivileges) [0x00044] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/InstallationProvider.cs:49 
  at MacInstaller.Core.Installer.BaseSoftwareItem.Install (System.String filePath) [0x00000] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/SoftwareItems/BaseSoftwareItem.cs:132 
  at MacInstaller.Core.Installer.BaseSoftwareItem.Install (MacInstaller.Models.Downloader.DownloadServiceWorkItem download) [0x000a1] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/SoftwareItems/BaseSoftwareItem.cs:123 
  at MacInstaller.Core.Installer.BaseSoftwareItem.Install () [0x00007] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/SoftwareItems/BaseSoftwareItem.cs:107 
  at MacInstaller.Core.Installer.IDEBaseSoftwareItem.Install () [0x00000] in/Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Core/Installer/SoftwareItems/IDEBaseSoftwareItem.cs:50 
  at MacInstaller.InstallationViewController.InstallItems () [0x000bf] in /Users/runner/runners/2.165.2/work/1/installer/MacInstaller.Universal/Views/Pages/InstallationViewController.cs:361 
...

Четко прочитайте причину сбоя в отчете журнала. В моем случае проблема заключается в перемещении файлов с помощью NSFileManager, а файл журнала показывает, что остальные компоненты установлены правильно.

Поэтому вручную установите visualstudioformac-8.5.2.13.dmg из загруженного каталога, описанного в шаге 2. это сработало для меня.

...