ARC and Memory Management in Swift | Ray Wenderlich

Ever wondered how memory management works in Swift? Or what common pitfalls are? Take a dive into ARC and memory management in Swift with this tutorial.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/134411/arc-memory-management-swift

Hi, this tutorial does not seem to work as described with XCode 10. I never tried it with previous versions. For starters when changing the Phone owner to a weak reference nothing gets deallocated. I tried with my own playground as well by downloading the playground at the end of the tutorial. Same problem even after making user unowned in CarrierSubscription.

If you get a chance, please check if you are seeing similar results or if I 'm missing something.

This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you!