gpt4 book ai didi

swift - Xcode 10.2 检测到新的单 View 应用程序中的内存泄漏

转载 作者:搜寻专家 更新时间:2023-10-31 21:45:47 25 4
gpt4 key购买 nike

任何人都可以在使用 Xcode 10.2.1 (10E1001)/Swift 5/iOS 12.2 创建的未更改 单 View 应用程序中重现内存泄漏吗?如何使用集成的内存泄漏工具认真工作?有任何解决方法吗?

第一张图片显示 1 次内存泄漏 (iPhone 8) enter image description here

第二张图显示37处内存泄漏(iPhone Xr模拟器) enter image description here

注意

每次启动分析器工具时,泄漏量都不同。

编辑 1

我注意到,Xcode 10 使用了新的构建系统。也许问题是基于此。 Build System Release Notes for Xcode 10

编辑 2

question好像和我的很像。

最佳答案

新的 Xcode 10.3 解决了这个问题 release !

Resolved an issue where running an app in iOS 12.2 or later under the Leaks instrument resulted in random numbers of false-positive leaks for every leak check after the first one in a given run. (48549361)

关于swift - Xcode 10.2 检测到新的单 View 应用程序中的内存泄漏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56208665/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com