电缆与Mac断开连接时,应用崩溃 [英] App crash when cable disconnected from Mac

查看:98
本文介绍了电缆与Mac断开连接时,应用崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此应用在模拟器上可以正常运行,在Mac上连接时可以正常运行,但是在断开连接后会崩溃. StackOverflow中还有其他非常古老的帖子,但是即使我尝试遵循,也无法正常运行.到目前为止,我所做的是:

1-要先停止Xcode,然后在断开电缆连接后不起作用.
2-要先停止该应用程序,然后在断开iPhone连接后,该应用程序可以正常工作无法在iPhone中运行
3-从iPhone中删除该应用程序,然后再次运行.
4-在Xcode中清洁产品

我没有调试,因为该应用程序已与Xcode断开连接.有人知道这是什么吗?

this app is running normally on simulator, is running normally while attached in my Mac, but when disconnected it crashes. There are other very old posts in StackOverflow, but even that I tried to follow did not work as well. What I did till now was:

1-To stop Xcode first and after disconnect the cable does not work.
2-To Stop the app first and after disconnect the iPhone does not work, the app does not run in the iPhone
3-Delete the app from the iPhone and run it again
4-Product Clean in Xcode

I have no debug because the app is disconnected from Xcode. Anyone knows what it is?

推荐答案

转到Xcode-> Windows->设备.选择您的设备,在那里您可以看到一些日志以及应用程序的所有崩溃日志.

Go to Xcode -> Windows -> Devices. Select your device and there you can see some logs and also all the Crash Logs of your apps.

也许这些日志可以为您提供帮助.另外,您应该在问题中粘贴日志,获得帮助的机会更高.

Maybe those logs can help you. Also you should paste the logs in your question and the chances to get help are higher.

这篇关于电缆与Mac断开连接时,应用崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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