1

I use iovation framework in my current swift project and I created a bridging header to be able to use it.

I have a struct instantiated in view controller and inside of the struct, I have a String which receives an iovation String! called ioBegin() enter image description here The ioBegin() is a class method and looks like this in framework:

enter image description here

When I started using Debug Memory Graph to find Leaks of memory I had this result (I had the same result using Instruments):

enter image description here

I tried to use class instead of struct just because I found some explanation here. I tried to use NSString (reference type) instead of String (value type) for deviceSig and I changed the LoginData from struct to class and my class looked like:

class LoginData: NSObject { ... }

Whatever I tried it didn't work. The iovation.ioBegin() is always seen as String!. I don't know what else I should try.

A similar question with the current one should be: Creat a memory leak with Objective-C and Swift but it doesn't help me at all.

Adela Toderici
  • 1,118
  • 13
  • 30

1 Answers1

1

Your memory graph is not rising, and if there's a leak, it's only 48 bytes, which in the grand scheme of things is zero. No important or sizeable object that needs to go out of existence is failing to go out of existence. Don't worry about it.

matt
  • 515,959
  • 87
  • 875
  • 1,141