将游戏从 Unity 5 导出到 MacOS 生成不允许的击键请求

Exporting games from Unity 5 to MacOS generate request for keystrokes not allowed

我试图将我使用旧版 Unity 创建的一些游戏导出到 Mac。

我成功导出了 2 个使用 Unity 2017.4.40 创建的游戏。但是现在我尝试导出一些使用 Unity 5.6.7 创建的游戏,但每次我尝试导出使用该 Unity 版本的游戏时,我都会在启动应用程序后收到来自系统的以下请求。

消息是

"MyApp" would like to receive keystrokes from any application.
Grant access to this application in Security & Privacy preferences, located in System Preferences.

当我从 Unity 2017.4.40 导出游戏时,我没有收到此消息,只有当我从 Unity 5.6.7 导出游戏时才会出现此消息。

我该如何解决?

您需要升级到 Unity 2018.4.7 或更高版本。

Unity 在 Unity 2018.4.7f1 中修复了这个问题,请参阅他们的发行说明 https://unity3d.com/de/unity/whats-new/2018.4.7

macOS: Fixes an issue with macOS Catalina that causes Unity to request permission to receive keyboard input when using other apps in both the editor and standalone player. (1172758)