Xcode 11.3 running on Mac 10.14.6 (18G95) can't compile on devices

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:-
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)'



Xcode 11.3 running on Mac 10.14.6 (18G95) can't compile on devices
 
 
Q