The length:
value for your dataWithBytesNoCopy:
call needs to be something like
size_t cubeDataSize = size * size * size * sizeof ( float ) * 4;
There is some other stuff wrong with your code, though; check out this working example:
https://github.com/vhbit/ColorCubeSample/blob/master/ColorCube/ViewController.m