无法在 macOS Mojave 中安装 Xcode 10 Network Link Conditioner
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/52414375/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot install Xcode 10 Network Link Conditioner in macOS Mojave
提问by Tamás Sengel
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 的网站下载了 Additional Tools for 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 visibleinside Settings.app. I even checked under /Library/PreferencePanes
- it's not there.
但是,首选项窗格在 Settings.app 中不可见。我什至检查过/Library/PreferencePanes
- 它不在那里。
How can I get around this?
我怎样才能解决这个问题?
回答by Tamás Sengel
I ended up manually copyingthe .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
.
正如马亭雅伯在此评论指出,对于在系统偏好未出现窗格中的原因是,安装程序错误地把该文件~/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 的附加工具
回答by meow2x
Network Link Conditioner is already installed but you can't see it on the Settings App. This worked for me:
网络链接调节器已安装,但您无法在设置应用程序上看到它。这对我有用:
- Press Command + Space to open spotlight
- Search for
Network Link Conditioner
- It will appear on the result, click on it and it will open Settings app.
Network Link Conditioner
is now visible in the Settings App. Open it from the Settings app.
- 按 Command + Space 打开聚光灯
- 搜索
Network Link Conditioner
- 它将出现在结果中,单击它,它将打开设置应用程序。
Network Link Conditioner
现在在设置应用程序中可见。从“设置”应用程序打开它。
Hope this helps!
希望这可以帮助!
回答by Lauren Caponong
+1 to brainray, what worked for me was:
+1 脑雷,对我有用的是:
- Download new Network Link Conditioner
- Replace the old one in /Library/PreferencePanes
- Open Network Link Conditioner directly from /Library/PreferencePanes
- 下载新的网络链接调节器
- 替换 /Library/PreferencePanes 中的旧的
- 直接从 /Library/PreferencePanes 打开网络链接调节器
It now appears in my Settings app
它现在出现在我的设置应用程序中
回答by Suraj K Thomas
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 文件,从安装程序中选择硬件
回答by Jim B
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.
如果在首选项中打开 NLC 时 NLC 冻结,请务必注意它必须以管理员身份运行。
With the following command the preference app from MacOS can be started as admin:
使用以下命令,可以以管理员身份启动 MacOS 中的首选项应用程序:
sudo /Applications/System\ Preferences.app/Contents/MacOS/System\ Preferences
回答by Przemys?aw Wrzesiński
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.
双击Network Link Conditioner.prefPane
在Additional_Tools_for_Xcode_x.dmg
对我来说有效-它出现在设置要求允许安装后。