Visual Studio在Mac OS X中安装失败

问题描述 投票:0回答:1

首先从https://visualstudio.microsoft.com/vs/mac/下载了Visual Studio安装程序,并开始了下载和安装过程。

在安装过程结束时,出现以下错误。所有事情都以管理员权限运行。

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 

目前,我一直在努力工作一整天,尝试使用不同的组合进行设置。

Dev环境

  • OS版本:Mojave(10.14.5)
  • xCode版本:10.2.1
  • Visual Studio for Mac v8.5.2(内部版本13)
  • 。NET Core SDK:3.1.201
  • 。NET Core运行时:2.1.16

到目前为止一切都已完成

引荐链接

以上都不适合我,任何建议将不胜感激。

macos visual-studio visual-studio-mac
1个回答
0
投票

为此找到了解决方法。

  1. [Visual Studio for Mac] >>安装程序将在通过以下屏幕后下载安装Visual Studio所需的所有组件,这些屏幕将存储在/Users/user-name/Library/VisualStudioInstaller/downloads
  2. enter image description here


  1. 您可以使用快捷方式cmd+shift+g直接导航到此处>

    enter image description here


    1. 然后运行安装并等待失败。在/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 
    ...
    
  2. 在日志报告中清楚阅读失败原因。就我而言,问题是使用NSFileManager移动文件,日志文件显示其余组件已正确安装。

  3. 因此,从步骤2中说明的下载目录中手动安装了visualstudioformac-8.5.2.13.dmg,这对我有用。

© www.soinside.com 2019 - 2024. All rights reserved.