Can't open app on Simulator MacOS Catalina

自古美人都是妖i 提交于 2019-12-13 01:06:07

问题


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.

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

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.


回答1:


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

xattr -dr com.apple.quarantine <path_to_app>

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.



来源:https://stackoverflow.com/questions/58301768/cant-open-app-on-simulator-macos-catalina

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!