与macOS Sierra中的AppTranslocation有关的错误 [英] Error Relating to AppTranslocation in macOS Sierra

查看:241
本文介绍了与macOS Sierra中的AppTranslocation有关的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来macOS Sierra中的Gatekeeper有点挑剔.无论如何,这导致我几年前制造的一个小实用程序引发了一个相当烦人的错误.

It would appear that Gatekeeper in macOS Sierra is a bit pickier. At any rate, it is causing a small utility I made some years ago to throw a rather annoying error.

由于我还没有时间深入研究Sierra的底层更改,因此我不确定如何解决该错误.有没有人有处理与AppTranslocation相关的错误并进行修复的经验?

As I haven't yet had the time to dig into the under-the-hood changes in Sierra, I'm not sure how to fix the error. Does anyone have experience dealing with errors relating to AppTranslocation and fixing them?

代码和错误如下:

代码:

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)

推荐答案

好吧,经过大量的试验和错误(并读了一些有关AppTranslocation如何在macOS 10.12 Sierra中工作的信息),我发现了一个修复程序

Well, after a fairly significant amount of trial and error (and a bit of reading about how AppTranslocation works in macOS 10.12 Sierra), I've discovered a fix.

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

In essence, you have to open the *.dmg and then move the contents to some other folder in Finder. The catch: If you move both simultaneously, AppTranslocation may 'tag' them (seemingly permanently) and continue to run every time you try to launch either *.app); this seems like a bug, and I intend to report it to Apple.

解决方案

重新下载* .dmg(如其他人所述) ,并将它包含的两个文件一次一次移动到文件夹中(最好是Utilities,但它是取决于您要他们居住的位置).完成此操作后,运行启动器,一切都将像以前一样工作.

Re-download the *.dmg (as others have stated) and move the two files it contains one at a time into a folder (preferably Utilities, but it's up to you where you want them to reside). Once you've done this, run the Launcher and everything should work as before.

这篇关于与macOS Sierra中的AppTranslocation有关的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆