CGBitmapContextCreate: unsupported parameter combination: 8 integer bits/component; 32 bits/pixel; 3-component color space;
のバグ。
http://sukesan1984.com/wordpress/2013/09/29/671
に同じようにバグが出てる方がいた。
そこの先にあるように
URL: https://github.com/cocos2d/cocos2d-x/pull/2871/files
ここのパッチを当てるとうまく行った。
具体的には、size_tでキャストする。
CGContextRef context = CGBitmapContextCreate(data, dim.width, dim.height, 8, dim.width * 4, colorSpace, kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big);
を
CGContextRef context = CGBitmapContextCreate(data, (size_t)dim.width, (size_t)dim.height, 8, (size_t)dim.width * 4, colorSpace, kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big);
にする。