Cannot install Xcode 10 Network Link Conditioner i

2020-05-12 04:43发布

问题:

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.

When I try to install the Network Link Conditioner Preference Pane, Settings.app displays this error:

“Network Link Conditioner” preferences is installed with macOS and can’t be replaced.

However, the preference pane is not visible inside Settings.app. I even checked under /Library/PreferencePanes - it's not there.

How can I get around this?

回答1:

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



回答2:

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!



回答3:

+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



回答4:

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

Install the dmg file, select hardware from installer

select Network Link conditioner prefpane



回答5:

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



回答6:

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.