无法在模拟器MacOS Catalina上打开应用 [英] Can't open app on Simulator MacOS Catalina

查看:185
本文介绍了无法在模拟器MacOS Catalina上打开应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新到MacOS Catalina后,我无法在模拟器上安装应用程序,在早期版本上还可以.但是现在,当我尝试运行模拟器中安装的应用程序时,会出现此弹出窗口.

I can't install app on my simulator after update to MacOS Catalina, it was fine on earlier versions. But Now when I try to run the app installed in the simulator I get this popup.

我已更改系统安全性和在终端sudo spctl --master-disable中使用此命令进行隐私设置,现在我的命令看起来像这样.

I have changed system Security & Privacy setting using this command in the terminal sudo spctl --master-disable and now my it looks like this.

但是即使在此之后我仍然无法运行该应用程序,您有任何想法,建议吗? 我的Xcode版本是11.1&目标iOS版本是13.1,使用xcode运行时应用运行平稳,但是导出的app导致了此问题.

But even after this I can't run the app, any idea, suggestion ? My Xcode version is 11.1 & target iOS version is 13.1, app runs smoothly when ran using xcode, but exported app is causing this issue.

推荐答案

我能够通过运行以下命令来解决此问题.

I was able to solve this problem by running the following command.

xattr -dr com.apple.quarantine <path_to_app>

事实证明,如果您使用某些浏览器下载app,那么它会添加一个标志,该标志在catalina中被认为是安全威胁,运行此命令可以解决此问题.

It turns out if you download app using some browser then it adds a flag which is considered a security threat in catalina, running this commands solves the issue.

这篇关于无法在模拟器MacOS Catalina上打开应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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