Memory Leaks in iOS: Find, Diagnose, & Fix (2022)

46,890
0
Published 2022-03-07
In this video we will cover memory leaks in iOS apps. We will first do an example to leak some memory and then fix it. More interestingly, we will explore the Leaks Instrument to visualize leaks/memory addresses. Will additionally cover the visual memory object graph. We will work in Xcode 13.

πŸ’» Source Code: patreon.com/iOSAcademy
πŸŽ₯ Subscribe for more: youtube.com/iOSAcademy?sub_confirmation=1
😎 Like my teaching style? Check out some of my most popular courses! courses.iosacademy.io/
πŸ‘‰πŸΌ Connect (personal LinkedIn) linkedin.com/in/afraz-siddiqui
πŸš€ Follow on LinkedIn linkedin.com/company/ios-academy

** Popular Series
Building Instagram: courses.iosacademy.io/p/build-instagram-swift-5-ui…
Building TikTok: youtube.com/channel/UCnksRRifsSCGUZpQukUKAyg/join
SwiftUI for Beginners: ios-academy.teachable.com/p/swiftui-for-beginners

** Get Skillshare free for 2 Months and learn iOS
www.skillshare.com/r/user/afraz

** Manage all your investments from app earnings on Betterment!
bit.ly/3eBwlI9

** Grow your own Youtube tech channel with TubeBuddy:
www.tubebuddy.com/iosacademy

#swift #memory #debugging

All Comments (21)
  • A more in-depth discussion of Instruments specifically to debug memory leaks would be very helpful. I have a personal App I'm working on and I'm definitely retaining memory somewhere. It'd be nice to figure out what is going on and how to use Instruments.
  • @manni7317
    Finally something that makes sense, everybody used to just give definations from google and vague answers to this question, this is such an important and vast topic, now i know what to look for, Thanks man, I repect you !
  • @KimbrellBrad
    More in-depth coverage as well as how to cure these in SwiftUI would be very much appreciated! Great start and exposure to something that I have explored but not really focused on enough. Thanks!
  • @robinandthedog
    top, like always, although I think I knew most, it's nice to see it come together like this for the community. Well done!
  • That's good πŸ‘ need more videos in depth for expert debugging and finding memory leaks
  • @tuncayonal82
    Thank you so much. I was looking for this topic for long times. Best Regards...
  • @yassinmziya2733
    I was asked this during an interview with THE big guy. Thanks for the coverage man
  • πŸ‘πŸ‘πŸ‘πŸ‘πŸ‘ for more videos about this topic. Mostly to detect more complex leaks
  • @techpwynt348
    Thank you so much for the video. Please make more videos on memory leaks.
  • Thanks a lot Afraz. It was a great topic with great explanation. Again you are the best. Please make some iOS debugging videos , tracing threads , understand how and where to fix and find out step by steps break points explanation. This memory leaks video covered one of them . Thanks a lot . You are doing fantastic. Good luck to you and your channel.
  • @CJWhitaker
    Great video, as always! Would you be willing to make the following videos please? 1. Show how to implement a loading animation that shows how many photos have been retrieved from Firebase Firestore and how many are remaining (like you see with Egnyte, for example). 2. Ask user for permission to access things such as Contacts, Photo Library, Location, and their Files. Thank you for your hard work!!
  • @kironet
    To avoid buggy false-positives in Instruments, run on an actual device instead of the simulator.
  • @guest9456
    Thanks a lot. that was a great and important topic. great cover. my request from you is that can you make a video about searching word from string. searching a word from textView's or SwiftUI's TextEditor's text and highlight matched ones. Like we do CMD+F? or can you guide me to it?
  • Nice video, but please show how to resolve memory leaks using Instruments. Thanks
  • @TephrosXI
    Another video that's more in depth with a potentially real-world situation would be helpful!