简体   繁体   English

Xcode 与 iPhone 6 的连接丢失

[英]Xcode lost connection to iPhone 6

I know there are already some posts here talking about the same problem, which is, when run the app on device, Xcode shows Xcode lost connection to iPhone, Restore the connection to App.... , But my situation is a bit strange.我知道这里已经有一些帖子在讨论同样的问题,即在设备上运行应用程序时, Xcode显示Xcode lost connection to iPhone, Restore the connection to App.... ,但我的情况有点奇怪。

My app works perfectly on my iPhone 6S ( iOS 10.1 Beta 3 ) but on my iPhone 6 Plus ( iOS 10.0.2 ), the app will crash and Xcode shows that information.我的应用程序在我的iPhone 6S ( iOS 10.1 Beta 3 )但在我的 iPhone 6 Plus (iOS 10.0.2) 上,应用程序会crash并且Xcode显示该信息。 I read some posts here saying it might be because my app loads too many high resolution photos and the OS kill the process due to high memory use Lost Connection to "iPhone" , but what happened to me let me think -- Could it be a iOS issue???我在这里阅读了一些帖子,说这可能是因为我的应用程序加载了太多高分辨率照片并且操作系统由于高内存使用丢失了与“iPhone”的连接而终止了该进程,但是发生在我身上的事情让我想——这可能是一个iOS问题??? Since on iOS 10.1 Beta 3 it has no problems.由于在iOS 10.1 Beta 3它没有问题。 ( And when iOS 9 , no problems as well ) (当iOS 9 ,也没有问题)

This really bothers me and if it is really an OS issue, then how to solve this?这真的很困扰我,如果它真的是操作系统问题,那么如何解决这个问题? how do those big companies'app ( like Facebook ) avoid the OS issues when there is a new iOS version released ?当有新的iOS版本发布时,那些大公司的应用程序(如Facebook)如何避免操作系统问题? I mean, the generally users don't have Beta version.我的意思是,一般用户没有 Beta 版。

will be very appreciated if any answer or advice.如果有任何答案或建议,将不胜感激。

First make sure that you are not loosing physical connection .首先确保您没有失去physical connection I means make sure that your usb cable is not breaking connection.我的意思是确保您的usb cable没有断开连接。 If it is so then you gots exactly this error which you have mentioned in your question.如果是这样,那么您就会得到您在问题中提到的这个错误。

Second thing yes this issue can be produce because of large memory consumption (usually large images), in this case you have to resize images to display in your imageViews and you should use less memory .第二件事是,由于大量内存消耗(通常是大图像),可能会产生此问题,在这种情况下,您必须调整图像大小以在imageViews显示,并且应该使用less memory You should avoid to convert your image to NSData if it is not hardly needed.如果不是几乎不需要,您应该避免将图像转换为NSData This shouldn't be a bug of latest ios but it should be your mistake somewhere to deal with data !这不应该是latest ios的错误,但应该是您处理data错误!

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

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