看起来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)
答案 0 :(得分:3)
好吧,经过相当多的试验和错误(以及关于AppTranslocation如何在macOS 10.12 Sierra中运行的一些内容),我发现了一个修复。
实质上,您必须打开* .dmg,然后将内容移动到Finder中的其他文件夹。问题:如果您同时移动两者,AppTranslocation可以标记'它们(看似永久)并继续运行每次时间尝试启动* .app);这似乎是一个错误,我打算向Apple报告。
解决方案
重新下载* .dmg(正如其他人所说)和将其包含的两个文件一次一个移动到一个文件夹中(最好是实用工具,但它& #39;取决于你希望他们居住的地方)。完成此操作后,运行启动器,一切都应该像以前一样工作。
答案 1 :(得分:1)
您必须从开发网站再次下载Airport Utility Launcher,因为当您安装macOS Sierra时,它会删除Airport Utility 5.6.1。这就是为什么你必须从网站下载整个文件夹的原因:http://zcs.zyniker.org/airport-utility-v5-6-1/
希望它有所帮助。