My project is huge and I started getting compilation errors all of a sudden on devices (compiling for simulators are fine). So I made a new empty project with one line of code that compiles fine on the simulator but can't on the device.
Here is the code:-
Error is:-
Implicitly declaring library function 'roundf' with type 'float (float)'
Here is the code:-
Code Block - (void)viewDidLoad { [super viewDidLoad]; // This line compiles fine on simulator but not on device. float s = roundf(233.33); }
Error is:-
Implicitly declaring library function 'roundf' with type 'float (float)'