Is there a way to quickly log out the retain count of objects to Xcode's Console? If not, what's the next best alternative?
using CFGetRetainCount
function
Example:
// `CFGetRetainCount` is only available in the `Foundation` module
import Foundation
print(CFGetRetainCount(object))
Read more here : https://developer.apple.com/reference/corefoundation/1521288-cfgetretaincount
hope helpful