Ios 应用程序内存泄漏

Ios 应用程序内存泄漏,ios,performance,memory,Ios,Performance,Memory,这些是内存泄漏。你能告诉我怎么解决这些问题吗?应用程序因问题而崩溃 Leaked Object # Address Size Responsible Library Responsible Frame Malloc 16 Bytes 1 0x169eea00 16 Bytes SystemConfiguration SCNetworkReachabilityCreateWithAddress Malloc 16 Bytes 1 0x155c2100 16 Byte

这些是内存泄漏。你能告诉我怎么解决这些问题吗?应用程序因问题而崩溃

Leaked Object   #   Address Size    Responsible Library Responsible Frame
Malloc 16 Bytes 1   0x169eea00  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
Malloc 16 Bytes 1   0x155c2100  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
Malloc 16 Bytes 1   0x16a54770  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
_NSUndoStack    1   0x155de700  32 Bytes    Foundation  -[NSUndoManager init]
SCNetworkReachability   1   0x16a626c0  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
SCNetworkReachability   1   0x16914f40  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
_UITextUndoManager  1   0x156f52a0  48 Bytes    UIKit   -[UITextInputController undoManager]
Malloc 16 Bytes 1   0x1697ef40  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
Malloc 16 Bytes 1   0x16a2e4a0  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
Malloc 16 Bytes 1   0x156007b0  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
SCNetworkReachability   1   0x16ace130  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
NSArray 1   0x155d3990  16 Bytes    Foundation  -[NSUndoManager init]
SCNetworkReachability   2   < multiple >    928 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
SCNetworkReachability   1   0x156eeaf0  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
Malloc 16 Bytes 1   0x15516dd0  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
SCNetworkReachability   2   < multiple >    928 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
Malloc 16 Bytes 1   0x16961a80  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
SCNetworkReachability   1   0x15516c00  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
SCNetworkReachability   1   0x16abea20  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
Malloc 16 Bytes 1   0x16a60fa0  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
SCNetworkReachability   1   0x16ac9210  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
SCNetworkReachability   1   0x156cb670  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
SCNetworkReachability   1   0x16954490  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
SCNetworkReachability   1   0x16a1f710  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
Malloc 16 Bytes 1   0x16a1db40  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
Malloc 16 Bytes 1   0x16961f90  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
Malloc 16 Bytes 2   < multiple >    32 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
SCNetworkReachability   1   0x16a5f9d0  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
Malloc 16 Bytes 1   0x1697f2a0  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
SCNetworkReachability   1   0x169911c0  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
SCNetworkReachability   1   0x169cf6c0  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
Malloc 16 Bytes 1   0x16a1dc60  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
SCNetworkReachability   1   0x16960090  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
SCNetworkReachability   1   0x16961dc0  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
Malloc 16 Bytes 2   < multiple >    32 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
Malloc 16 Bytes 1   0x156c9d50  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
Malloc 16 Bytes 1   0x1699c6d0  16 Bytes    SystemConfiguration SCNetworkReachabilityCreateWithAddress
SCNetworkReachability   1   0x16a3be60  464 Bytes   SystemConfiguration __SCNetworkReachabilityCreatePrivate
泄漏对象#地址大小负责库负责帧
Malloc 16字节1 0x169eea00 16字节系统配置SCNetworkReachabilityCreateWithAddress
Malloc 16字节1 0x155c2100 16字节系统配置SCNetworkReachabilityCreateWithAddress
Malloc 16字节1 0x16a54770 16字节系统配置SCNetworkReachabilityCreateWithAddress
NSundoStad 1 0x155DE700 32字节基础- [ NSUNDMONANGER init ]
SCNetworkReachability 1 0x16a626c0 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
SCNetworkReachability 1 0x16914f40 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
_UITextUndoManager 1 0x156f52a0 48字节UIKit-[UITextUndoManager]
Malloc 16字节1 0x1697ef40 16字节系统配置SCNetworkReachabilityCreateWithAddress
Malloc 16字节1 0x16a2e4a0 16字节系统配置SCNetworkReachabilityCreateWithAddress
Malloc 16字节1 0x156007b0 16字节系统配置SCNetworkReachabilityCreateWithAddress
SCNetworkReachability 1 0x16ace130 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
NSART 1 0x155D39 90 16字节基础- [ NSUNDMONANGER init ]
SCNetworkReachability 2928字节系统配置\uu SCNetworkReachability CreatePrivate
SCNetworkReachability 1 0x156eeaf0 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
Malloc 16字节1 0x15516dd0 16字节系统配置SCNetworkReachabilityCreateWithAddress
SCNetworkReachability 2928字节系统配置\uu SCNetworkReachability CreatePrivate
Malloc 16字节1 0x16961a80 16字节系统配置SCNetworkReachabilityCreateWithAddress
SCNetworkReachability 1 0x15516c00 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
SCNetworkReachability 1 0x16abea20 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
Malloc 16字节1 0x16a60fa0 16字节系统配置SCNetworkReachabilityCreateWithAddress
SCNetworkReachability 1 0x16ac9210 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
SCNetworkReachability 1 0x156cb670 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
SCNetworkReachability 1 0x16954490 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
SCNetworkReachability 1 0x16a1f710 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
Malloc 16字节1 0x16a1db40 16字节系统配置SCNetworkReachabilityCreateWithAddress
Malloc 16字节1 0x16961f90 16字节系统配置SCNetworkReachabilityCreateWithAddress
Malloc 16字节2<多个>32字节系统配置SCNetworkReachabilityCreateWithAddress
SCNetworkReachability 1 0x16a5f9d0 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
Malloc 16字节1 0x1697f2a0 16字节系统配置SCNetworkReachabilityCreateWithAddress
SCNetworkReachability 1 0x169911c0 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
SCNetworkReachability 1 0x169CF6C0464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
Malloc 16字节1 0x16a1dc60 16字节系统配置SCNetworkReachabilityCreateWithAddress
SCNetworkReachability 1 0x16960090 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
SCNetworkReachability 1 0x16961dc0 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate
Malloc 16字节2<多个>32字节系统配置SCNetworkReachabilityCreateWithAddress
Malloc 16字节1 0x156c9d50 16字节系统配置SCNetworkReachabilityCreateWithAddress
Malloc 16字节1 0x1699c6d0 16字节系统配置SCNetworkReachabilityCreateWithAddress
SCNetworkReachability 1 0x16a3be60 464字节系统配置\uuU SCNetworkReachabilityCreatePrivate

我认为文件SCNetworkReachability(函数SCNetworkReachabilityCreateWithAddress)中分配了一些内容。但不太清楚你的日志。您是否能够隔离使用可达性的代码?您是否在代码中使用了ARC?

到目前为止您尝试了什么?搜索、研究、阅读有关内存泄漏的文档和以前的帖子?我已经计算出内存泄漏,但无法解决它们。您启用了僵尸对象吗?没有,我没有启用xcode,请按cmd+shift+b,如果存在内存泄漏,xcode会通知您。否则就会出现代码泄漏(逻辑正确)。实际上,我正在使用AFNetworking API从服务器获取图像。文件SCNetworkAccessibility是您自己的文件还是来自苹果的文件,您可以在其中了解网络状态(wi-fi连接或未连接示例)。你什么时候有这个错误?当您从服务器发送或接收图像时?我使用AFNetworking从服务器获取和发送呼叫,我使用SDWEbimage从web URL显示图像。谢谢您的建议,我将尝试帮助我解决内存泄漏问题