I am trying to do a simple animation by using this snippet:
[UIView animateWithDuration:2.0
delay:0.0
options: UIViewAn
BOOL is a different type, depending on whether you compile for 32 bit or for 64 bit. There are different types used like Bool, bool, Boolean plus probably others - make sure that you use the same type everywhere.
Plugging in your device means that code will be compiled for your device, and not for the simulator, so this can change between 32 and 64 bit and trigger the problem.
I'd also check if there is a typedef or #define for BOOL somewhere in your code. Double-click on BOOL in your code, right-click and "Show definition".