简体   繁体   English

无法在macOS Mojave中安装Xcode 10 Network Link Conditioner

[英]Cannot install Xcode 10 Network Link Conditioner in macOS Mojave

I'm using the final version of Xcode 10 on macOS Mojave beta 11. I downloaded the Additional Tools for Xcode 10 package from Apple's website . 我在macOS Mojave beta 11上使用了Xcode 10的最终版本。我从Apple的网站上下载了Xcode 10附加工具包。

When I try to install the Network Link Conditioner Preference Pane, Settings.app displays this error: 当我尝试安装网络链接调节器首选项窗格时,Settings.app显示以下错误:

“Network Link Conditioner” preferences is installed with macOS and can't be replaced. “网络链接调节器”首选项随macOS一起安装,无法替换。

However, the preference pane is not visible inside Settings.app. 但是,在Settings.app中不显示首选项窗格。 I even checked under /Library/PreferencePanes - it's not there. 我甚至在/Library/PreferencePanes下检查过 - 它不在那里。

在此输入图像描述

How can I get around this? 我怎么能绕过这个?

I ended up manually copying the .prefPane file to: 我最终手动将 .prefPane文件复制到:

/Library/PreferencePanes

After restarting Settings.app, it finally appeared on the list and worked perfectly. 重新启动Settings.app后,它最终出现在列表中并且工作正常。

As Martijn Scheffer stated in this comment , the reason for the pane not appearing in System Preferences is that the installer incorrectly puts the file to ~/Library/PreferencePanes instead of /Library/PreferencePanes . 正如Martijn Scheffer在本评论中所述,窗格未显示在“系统偏好设置”中的原因是安装程序错误地将文件放入~/Library/PreferencePanes而不是/Library/PreferencePanes

Download in https://developer.apple.com/download/more/ Additional Tools for Xcode 10.1 下载https://developer.apple.com/download/more/ Xcode 10.1的附加工具

在此输入图像描述

在此输入图像描述

Network Link Conditioner is already installed but you can't see it on the Settings App. 网络链接调节器已安装,但您无法在设置应用程序上看到它。 This worked for me: 这对我有用:

  1. Press Command + Space to open spotlight 按Command + Space打开聚光灯
  2. Search for Network Link Conditioner 搜索Network Link Conditioner
  3. It will appear on the result, click on it and it will open Settings app. 它将显示在结果上,单击它,它将打开设置应用程序。
  4. Network Link Conditioner is now visible in the Settings App. Network Link Conditioner器现在在设置应用程序中可见。 Open it from the Settings app. 从“设置”应用中打开它。

Hope this helps! 希望这可以帮助!

+1 to brainray, what worked for me was: +1来讨论,对我有用的是:

  1. Download new Network Link Conditioner 下载新的网络链接调节器
  2. Replace the old one in /Library/PreferencePanes 替换/ Library / PreferencePanes中的旧版本
  3. Open Network Link Conditioner directly from /Library/PreferencePanes 直接从/ Library / PreferencePanes打开网络链接调节器

It now appears in my Settings app 它现在出现在我的设置应用中

Update on the answer June 2019 Xcode 10.2 更新答案2019年6月Xcode 10.2

Apple has moved Network Link Conditioner Tool to additional tools for Xcode Apple已将Network Link Conditioner Tool转移到Xcode的其他工具中

Go to the below link 转到以下链接

https://developer.apple.com/download/more/?q=Additional%20Tools https://developer.apple.com/download/more/?q=Additional%20Tools

在此输入图像描述

Install the dmg file, select hardware from installer 安装dmg文件,从安装程序中选择硬件

在此输入图像描述

select Network Link conditioner prefpane 选择Network Link conditioner prefpane 在此输入图像描述

双击Additional_Tools_for_Xcode_x.dmgNetwork Link Conditioner.prefPane为我工作 - 在请求安装权限后它出现在设置中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM