简体   繁体   English

在设备上启动app的例外,在模拟器中工作正常

[英]Exception on app startup in device,works fine in simulator

The application works fine on the simulator but breaks in start up in device as in the figure 该应用程序在模拟器上运行良好,但在设备启动中断,如图所示

在此输入图像描述

I tried some of the solution in SO but It doesnt work out.What may be the reason ?How can i find it? 我在SO中尝试了一些解决方案,但它没有成功。可能是什么原因?我怎么能找到它? How to resolve it 如何解决它

For clarity 为清楚起见

在此输入图像描述

Tried : Changing the view controller the viewcontroller. 尝试:更改视图控制器视图控制器。 view did load and all functions are working fine after that when the view tries to appear on the screen the crash appears 当视图试图在屏幕上出现崩溃时,视图确实加载并且所有功能都正常工作

UPDATE : Now getting the error logged as 更新:现在将错误记录为

*** -[Not A Type retain]: message sent to deallocated instance 0x208c9610

I had the same issue before. 我以前遇到过同样的问题。 This is not a crash. 这不是崩溃。 Please remove all your break points and run it again. 请删除所有断点并重新运行。

This is a Breakpoint error ..... It normally occurs when you add a breakpoint to an app running in the device. 这是一个断点错误.....通常在您向设备中运行的应用程序添加断点时发生。 If you add the breakpoints before the app has been built and run it again.... The crash will not occur. 如果在构建应用程序之前添加断点并再次运行它......将不会发生崩溃。

Even I couldn't figure out why this crash should occur in the first place but it does. 即使我无法弄清楚为什么这个崩溃应该首先发生,但确实如此。

确定发现了问题。我正在使用一个没有实现ARC的外部库,因此必须标记。除2之外的所有文件都不会被标记为-fno-objc-arc因此问题。

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

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