Re: Garbage Collection Caveats

Problem: When I am testing the shoe/deck/card classes with a unit test
bundle and I build it with the Garbage Collection Supported option, my
test builds perfectly. When I use the Garbage Collection Required
option my script fails with the following message:

Any ideas on why it would do this or what to look for? I suspect that
it has something to do with a couple hundred card objects being
generated and then the garbage collector getting ahold of them before
I'm done with them, but I have no idea how to verify this theory or
test it out.

That thread explains what's going on and how to address it. The short
version: In Xcode 3.0, SenTestingKit.framework is built GC-supported
but otest is not, so you can't use the stock version to test a GC-
required framework. You have to either make your framework GC-
supported and test it without GC, or build your own otest that is GC-
supported to test it with GC.