丢失与“iPhone”的连接 [英] Lost Connection to "iPhone"

查看:543
本文介绍了丢失与“iPhone”的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在真实设备中运行应用程序时出现此错误

When i am trying to run application in the real device getting this error

恢复与iPhone的连接并再次运行我的应用程序,或者如果我的应用程序仍在运行,您可以通过选择Debug> Attach to Process> My App附加到它。

实际上当遇到此问题时从Web服务中将一堆图像(近35个)加载到CollectionView中。

Actually getting this problem when loading bunch of images(nearly 35) into CollectionView from web service.

但是当我在模拟器中运行时没有出现这个问题。

But not getting this problem when i am running in simulator.

推荐答案

如果你有非常高分辨率的图像,这可能是一个内存问题。在Xcode Debug Navigator 中检查设备的内存使用情况。

This could be a memory issue if you have images of very high resolution. Check the memory usage of the device in Xcode Debug Navigator.

如果因为图像而进行调试

To debug if it is because of images


  • 尝试不使用图像或禁用代码中的图像加载并检查问题是否仍然存在

如果是因为内存分配过高,则可能需要调整大小图片。

If it is because of high memory allocation you might have to resize the images.

这篇关于丢失与“iPhone”的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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