I had similar problem. I added empty deinit
method to my class and added breakpoint:
deinit {
}
As result it’s never called.
As soon as I add some code to the body it started working as expected:
deinit {
print("deinit called")
}
So be sure that your deinit
method isn’t empty.
PS. I am using Swift 2, Xcode 7.1