无法在 macOS Mojave 中安装 Xcode 10网络链接调节器

我正在 MacOS Mojave beta 11上使用 Xcode 10的最终版本。我下载了 Xcode 10包 来自苹果公司的网站的附加工具。

当我尝试安装网络链接调节器首选项窗格时,Settings.app 会显示以下错误:

“网络链接调节器”首选项安装在 macOS 中,不能替换。

然而,首选项窗格是在 Settings.app 中的 看不见。我甚至在 /Library/PreferencePanes下面检查了一下——它不在那里。

enter image description here

我怎么才能避开这个?

19202 次浏览

I ended up manually copying the .prefPane file to:

/Library/PreferencePanes

After restarting Settings.app, it finally appeared on the list and worked perfectly.

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.

Download in https://developer.apple.com/download/more/ Additional Tools for Xcode 10.1

enter image description here

enter image description here

+1 to brainray, what worked for me was:

  1. Download new Network Link Conditioner
  2. Replace the old one in /Library/PreferencePanes
  3. Open Network Link Conditioner directly from /Library/PreferencePanes

It now appears in my Settings app

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
  2. Search for 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. Open it from the Settings app.

Hope this helps!

Double clicking the Network Link Conditioner.prefPane in the Additional_Tools_for_Xcode_x.dmg worked for me - it appeared in the Settings after asking for permission to install.

Update on the answer June 2019 Xcode 10.2

Apple has moved Network Link Conditioner Tool to additional tools for Xcode

Go to the below link

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

enter image description here

Install the dmg file, select hardware from installer

enter image description here

select Network Link conditioner prefpane enter image description here

In case the NLC is freezing when turning it on in the preferences it's important to note that it has to run as admin.

With the following command the preference app from MacOS can be started as admin:

sudo /Applications/System\ Preferences.app/Contents/MacOS/System\ Preferences

See here: https://stackoverflow.com/a/36445625/4417912