与 macOS Sierra 中的 AppTranslocation 相关的错误

编程入门 行业动态 更新时间:2024-10-27 04:30:31
本文介绍了与 macOS Sierra 中的 AppTranslocation 相关的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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(如其他人所述)将其中包含的两个文件一次一个移动到一个文件夹中(最好是实用程序,但它是取决于您希望他们居住的地方).完成此操作后,运行启动器,一切都应该像以前一样工作.

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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-17 14:40:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/915944.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   macOS   Sierra   AppTranslocation

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!