简体   繁体   English

Xamarin iOS应用中的随机崩溃

[英]Random crashes in Xamarin iOS app

I am developing an iOS app using , everything going fine except than I am facing random crashes in my app. 我正在使用开发iOS应用程序,但除我在应用程序中遇到随机崩溃外,其他一切都很好。 I have tried for iPhone 5,4s, iOS simulator (iOS 7 and iOS 8) . 我已经尝试过iPhone 5,4s,iOS模拟器(iOS 7和iOS 8)。 I am unable to find any cause for the crashes as crashes are just random at any place and anytime in the app. 我无法找到导致崩溃的任何原因,因为崩溃只是在应用程序中的任何位置和任何时间都是随机的。 Also I am facing a weird issue where I am unable to raise event inn button touch in simulator while it is working fine in physical device. 另外,我还遇到一个奇怪的问题,即当它在物理设备上正常工作时,我无法在模拟器中引发事件客栈按钮触摸。 can anybody suggest me some tool or tip to cop with these crashes. 有人可以建议我一些工具或技巧来应对这些崩溃。 I have tried to use Xamarin insight but no log is there. 我尝试使用Xamarin洞察力,但没有日志。

Thanks 谢谢

"Random" crashes almost always point to memory management problems (stack or heap corruption, over-releasing, etc). “随机”崩溃几乎总是指向内存管理问题(堆栈或堆损坏,过度释放等)。 Your best bet is to use guard malloc and zombies to track down these issues. 最好的选择是使用防护malloc和僵尸来跟踪这些问题。 Instruments (a tool provided with Xcode) is a great asset for tracking down issues like yours. 仪器(Xcode随附的工具)是追踪类似问题的重要资产。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM