- Home /
iOS Build Integer literal is too large to be represented in a signed integer type
I am building my game for iOS. When I press play on xCode to simulate on my device, I get around 400 errors that say:
Integer literal is too large to be represented in a signed integer type
Implicit conversion loses integer precision
Furthermore, I believe that these errors are breaking my game. When I play my game on my device, many aspects of the game that work perfectly fine in the unity simulator completely break.
I get the same page of that error (after Apple's mandated 64-bit update,) but they don't seem to do any harm. Game runs fine, same as before.
But I was testing directly on the device the entire time, not using the simulator. Was your project running on the iOS device previously?
No, I was simulating my game within Unity. For some reason my game works perfectly fine in unity in my iOS build, yet when I test it on the device itself the game doesn't work (more specifically my triggers and sprite render layers are ignored). I assume these errors are caused by exporting to Xcode, but I could be wrong.
@Owen Reynolds