App crash when cable disconnected from Mac

你离开我真会死。 提交于 2020-01-06 02:42:08

问题


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?


回答1:


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.




回答2:


I got the same problem. It turned out that I had some checkboxes checked in

Product->Scheme->Edit scheme->Run->Diagnostics.

After I unchecked them the app started working after being installed and disconnected from Mac.



来源:https://stackoverflow.com/questions/33554219/app-crash-when-cable-disconnected-from-mac

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