3

看起来 macOS Sierra 中的 Gatekeeper 有点挑剔。无论如何,它会导致我几年前制作的一个小实用程序抛出一个相当烦人的错误。

由于我还没有时间深入研究 Sierra 的底层变化,我不确定如何修复该错误。有没有人有处理与 AppTranslocation 相关的错误并修复它们的经验?

代码和错误如下:

代码

tell application "Finder"
set currentDir to POSIX path of ((container of (path to me)) as text)
end tell
set currentDir to quoted form of currentDir
set lib80211 to quoted form of "AirPort Utility 5.6.1 Launcher.app/Contents/Resources/Apple80211.framework/Versions/A/Apple80211"

do shell script "export DYLD_INSERT_LIBRARIES=" & currentDir & lib80211 & "
cd " & currentDir & "AirPort\\ Utility\\ 5.6.1.app/Contents/MacOS
./AirPort\\ Utility"

错误

sh: line 1: cd: /private/var/folders/t4/7k5z832d2tjd4xpzvvq43n4m0000gn/T/AppTranslocation/23AF67A4-3DF7-4982-A1A3-B019CDACB4C2/dAirPort Utility 5.6.1.app/Contents/MacOS: No such file or directory
sh: line 2: ./AirPort Utility: No such file or directory (127)
4

2 回答 2

3

好吧,经过相当多的试验和错误(以及一些关于 AppTranslocation 如何在 macOS 10.12 Sierra 中工作的阅读),我发现了一个修复程序。

本质上,您必须打开 *.dmg,然后内容移动到 Finder 中的其他文件夹。问题:如果您同时移动两者,AppTranslocation 可能会“标记”它们(似乎是永久的)并在您每次尝试启动 *.app 时继续运行);这似乎是一个错误,我打算向 Apple 报告。

解决方案

重新下载 *.dmg (正如其他人所说)并将其中包含的两个文件一次移动到一个文件夹中(最好是实用程序,但取决于您希望它们驻留的位置)。完成此操作后,运行启动器,一切都应该像以前一样工作。

于 2016-10-11T16:07:28.860 回答
1

您必须从开发网站再次下载 Airport Utility Launcher,因为当您安装 macOS Sierra 时,它会清除 Airport Utility 5.6.1。这就是为什么您必须从网站下载整个文件夹:http: //zcs.zyniker.org/airport-utility-v5-6-1/

希望能帮助到你。

于 2016-09-25T17:29:08.793 回答