无法在 macOS 10.14 Mojave 下加载 Info.plist 错误 Xcode 10

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/52507950/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:48:59  来源:igfitidea点击:

Unable to load Info.plist error Xcode 10 under macOS 10.14 Mojave

xcodemacos-mojave

提问by Jiulong Zhao

I got this error message while running my app from within Xcode and the Archived exported app do NOT execute under macOS 10.14

我在 Xcode 中运行我的应用程序时收到此错误消息,并且存档导出的应用程序不会在 macOS 10.14 下执行

[default] Unable to load Info.plist exceptions (eGPUOverrides)

BTW, change Xcode's File -> Project Settings -> Build System to "Legacy Build System" does not work for me.

顺便说一句,将 Xcode 的 File -> Project Settings -> Build System 更改为“Legacy Build System”对我不起作用。

回答by Tinko L.

It's not an Xcode bug, it's a Mojave bug.

这不是 Xcode 错误,而是 Mojave 错误。

I met this error every seconds. No matter I open any app, all comes with this bug in the Console.

我每秒钟都会遇到这个错误。无论我打开任何应用程序,控制台中都带有此错误。

I can't use the settings in System Prefrences - Security - Privacy - Accessibilitybecause I can't add anything to the list ( I'm sure I unlocked the panel )

我无法使用中的设置,System Prefrences - Security - Privacy - Accessibility因为我无法向列表中添加任何内容(我确定我已解锁面板)

And when I start Steam, it also cause this error ------ Then the Steam exits on it's own.

当我启动 Steam 时,它也会导致此错误 ------ 然后 Steam 自行退出。

Seems it was due to the CoreServicesor LaunchServices, but I don't know what to do.

似乎是由于CoreServicesor LaunchServices,但我不知道该怎么做。

回答by Sylwester Pilarz

I have the same problem with my project - everything builds fine, but nothing show up except that error:

我的项目有同样的问题 - 一切都很好,但除了错误之外没有任何显示:

Unable to load Info.plist exceptions (eGPUOverrides)

无法加载 Info.plist 异常(eGPUOverrides)

It IS Mojave bug. Apple trying to fix this issue in the next versions of Xcode. For now, I recommend to just downgrade the IDE for 9.4.1 version and waiting for resolve. It was the only option worked for me.

这是莫哈韦沙漠的错误。Apple 试图在下一版本的 Xcode 中解决这个问题。目前,我建议将 IDE 降级为 9.4.1 版本并等待解决。这是唯一对我有用的选择。

回答by Cliff Ribaudo

Apps linked against 10.14 (Mojave) need to add this key to their Info.plist

链接到 10.14 (Mojave) 的应用程序需要将此密钥添加到其 Info.plist

NSAppleEventsUsageDescription

Details on usage available here Apple Developer Videoand here Apple Developer Forum.

Apple Developer VideoApple Developer Forum此处提供了有关使用的详细信息。

回答by Daniel

The very latest Beta of Mojave 10.14.4 Beta (18E194d) fixed it for me. Without changing anything in XCode the error is finally gone.

Mojave 10.14.4 Beta (18E194d) 的最新 Beta 版为我修复了它。无需更改 XCode 中的任何内容,错误终于消失了。

回答by Carl Sanders

Possibly not relevant but I had a similar issue today - XCode 10 + High Sierra.

可能不相关,但我今天遇到了类似的问题 - XCode 10 + High Sierra。

Mine was an issue with the Fabric/Run script in the Build Phases window. The error suggested it was a 'timing' issue. I checked the box that said 'Run script only when installing' in the build phases window, and now my project builds and runs again.

我的是 Build Phases 窗口中 Fabric/Run 脚本的问题。该错误表明这是一个“时间”问题。我在构建阶段窗口中选中了“仅在安装时运行脚本”框,现在我的项目构建并再次运行。

[UPDATE] My solution was found here: XCode 10 archive failure

[更新] 我的解决方案在这里找到: XCode 10 archive failure

回答by paulrbarnard

This seems to be resolved with the Public release of 10.14.4. I was having the issue until yesterday using 10.14.3 Public release but after overnight update the issue is gone.

这似乎在 10.14.4 的公开版本中得到解决。直到昨天,我使用 10.14.3 公开版本才遇到这个问题,但经过一夜之间的更新,问题就消失了。

I have removed the various work around suggestions such as 'Build System Legacy' in XCode and NSAppleEventsUsageDescription, which didn't actually help in my case, and everything is still fine.

我已经删除了围绕建议的各种工作,例如 XCode 和 NSAppleEventsUsageDescription 中的“Build System Legacy”,这对我来说实际上没有帮助,一切仍然很好。

回答by OrangePot

I've got xcode 10.1 and mojave 10.14 and solve it by build to Legacy Build System(as you mentioned) but also when my app ran, it triggered the OS to open an accessibility window for that app. I removed the current app association with -and re-added it.

我有 xcode 10.1 和 mojave 10.14 并通过构建来解决它Legacy Build System(正如你提到的),而且当我的应用程序运行时,它触发操作系统为该应用程序打开一个辅助功能窗口。我删除了当前的应用程序关联-并重新添加了它。