Posts

Post not yet marked as solved
10 Replies
I am downloading XCode 10.3 now, will see if it resolves the false positives on iOS 12.2 & 12.3 for Obj-C. In the meantime I was lucky enough to have a device with iOS 12.1.2 running that I could leak check my code on ( XCode 10.2.1 + IOS 12.1.2 is not showing the same framework leaks / false positives ). So if you have a device running an older version of iOS 12.1.2 that might be a way to differentiate the false positives from real leaks. Will update once I run some tests on XCode 10.3 + iOS 12.x. Fingers crossed. **Update** Just ran a few quick tests: 1) iOS 12.3.1 + Xcode 10.3 still shows numerous leaks in various core frameworks. 2) iOS 12.1.2 + Xcode 10.3 running exact same code shows no framework leaks. 3) There seems to be an iOS12.4 update available, next step is to try combo of XCode 10.3 + iOS 12.4 and see if the problems is eliminated. Will update when I get a chance to give it a try.**Update** XCode 10.3 + iOS 12.4 resolves the issue for OBJ-C Metal & AVAudioEngine application in my testing.
Post not yet marked as solved
10 Replies
Good news everyone, from my testing, for Obj-C Metal + AVAudioEngine application, Xcode 10.3 + iOS 12.4 resolves the false positives seen in the leaks instrument that many were previously experiencing on iOS 12.3 & 12.2 + XCode 10.2.1. Curious if anyone can test with Swift and report the results.
Post not yet marked as solved
10 Replies
Noticed that XCode 10.2.1 + iOS 12.1.2 does not generate leaks while XCode 10.2 + iOS 12.2 or 12.3 does generate numerous leaks in the Leaks instrument. Update: Just performed a simple test using the "Hello Triangle" example from the Metal tutorials. With XCode 10.2.1, iOS 12.3, under Obj-C, and no changes to the code provided in the example, the leaks instrument immediately begins showing leaks. Here is the link to the example application: https://developer.apple.com/documentation/metal/using_a_render_pipeline_to_render_primitives?language=objc
Post not yet marked as solved
2 Replies
I am seeing the same exact problem. My application makes use of MetalKit and AVAudioEngine for what it is worth. The leaks began showing up in the tools after 12.2. I can confirm that the same exact code running Leaks instrument will have zero leaks with iOS 12.1.2. Under 12.2 and 12.3 many of the core frameworks appear to be leaking. Appears that XCode 10.2 + iOS 12.2 or greater is an issue, noticed this thread: https://forums.developer.apple.com/thread/115120
Post not yet marked as solved
2 Replies
It looks like there are a few similar questions on this. I am seeing that the Leaks instrument is giving leaks as of iOS 12.2. Same code on 12.1.2 will give no leaks. Here is a link to the other discussion thread: https://forums.developer.apple.com/message/360147#360147