gtrckt
November 11, 2014, 6:34pm
1
I am following the examples on the book and there’s no leak show up in the instrument panel. I only saw activities in the “Allocations” instrument but “Leaks” shows total blank.
If you can observe the leak in the instrument, can you break down the steps you did? I am using Xcode 6.1… I am wondering whether this is Xcode 6.1’s bug…
Thanks in advance. CJ
NilsCA
January 8, 2015, 2:53am
2
I did see the leak that’s described. I’m using Xcode 6.1.1, and OS X 10.10.1.
2015-01-07 20:18:21.542 BMTime[1890:122091] Employees: (
"<Employee 0: $0 in assets>",
"<Employee 1: $153 in assets>",
"<Employee 2: $119 in assets>",
"<Employee 3: $68 in assets>",
"<Employee 4: $0 in assets>",
"<Employee 5: $136 in assets>",
"<Employee 6: $119 in assets>",
"<Employee 7: $34 in assets>",
"<Employee 8: $0 in assets>",
"<Employee 9: $136 in assets>"
)
2015-01-07 20:18:21.543 BMTime[1890:122091] Giving up ownership of one employee
2015-01-07 20:18:21.543 BMTime[1890:122091] Giving up ownership of array
2015-01-07 20:18:21.543 BMTime[1890:122091] deallocating <Employee 0: $0 in assets>
2015-01-07 20:18:21.544 BMTime[1890:122091] deallocating <Employee 4: $0 in assets>
2015-01-07 20:18:21.544 BMTime[1890:122091] deallocating <Employee 8: $0 in assets>
Program ended with exit code: 0
The only thing that I can suggest is, review the source code carefully.