Tuesday, February 28, 2017

Xcode + Implicit Conversion Looses Integer Precision Error


Hi Friends,

Ever faced this issue on upgrading xCode or switching old project on xCode 5 to new xCode. Here is the Solution :)

Error
Implicit Conversion Looses Integer Precision

What is this Error
On a 64 bit system and xCode 5.1 the default architecture is 64 bit and accordingly NSInteger / NSUInteger changes its size.

Resolution
Xcode
Project
Target
Build Settings

  • Set Implicit Conversion to 32 Bit Type as NO
  • Set Treat warnings as Errors to NO








No comments:

Post a Comment