Seeing a crash when loading a simple ccbi file from SpriteBuilder v3. The ccbi file contains a CCButton with a Selector set to a method in the document class. The ccbi file loads and runs fine on my iPad (32bit) but crashes on my (64 bit) iPhone 5S.
XCode highlights the following line with EXC_BAD_ACCESS:
/** A block that handles action callbacks sent by the control. Use either the block property or the setTarget:selector: method to receive actions from controls. */
@property (nonatomic,copy) void(^block)(id sender);
The error looks like this (just taking one example):
Thread 1: EXC_BAD_ACCESS (code=1, address=0x435f245f53415a59)
Note that the address is a full 64 bit value, whereas the addresses on other heap variables are 0x13f839200 (for example) - so its like somehow a variable is getting a bogus value. I haven't been able to debug what variable it is that has that value.
Setting NSZombieEnabled produces no output at all, so its not a zombie. Its like something is being treated as a pointer - possibly from a cast - so far no luck in tracking it down. Anyone else seen this?
There is no problem executing the app on my iPad - the crash only occurs on my 64bit iPhone 5S. It is occurring when setting a block to create the call back of a CCButton.
I have a work-around for now, which is to remove the selector from the SpriteBuilder UI, and instead assign the call back at runtime.
But its kind of a pain.
EDIT: Looks to be same issue reported here on the SpriteBuilder forums.