[英]AFURLConnectionOperation.m Implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'NSInteger' (aka 'int')
I got a warning in Xcode 5.1
as stated below 我在Xcode 5.1
收到警告,如下所述
AFNetworking 2.2.0: AFURLConnectionOperation.m Implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'NSInteger' (aka 'int')
Is this important? 这很重要吗?
You can make the following change manually until the next CocoaPod release (the change is already in GitHub ). 您可以手动进行以下更改,直到下一个CocoaPod版本(更改已在GitHub中 )。
change: 更改:
[decoder decodeInt64ForKey:NSStringFromSelector(@selector(totalBytesRead))];
to: 至:
[decoder decodeIntegerForKey:NSStringFromSelector(@selector(totalBytesRead))];
This mean is arm64 architecture int64_t
range is -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
but int
range is -2,147,483,648 to 2,147,483,647
. 这意味着arm64架构int64_t
范围是-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
但int
范围是-2,147,483,648 to 2,147,483,647
。 so compiler say to Loss of value. 所以编译器说失去价值。
See a this: ConvertingYourAppto-64Bit 请参阅: ConvertingYourAppto-64Bit
if you don't want more warning. 如果你不想要更多的警告。 you can must change to architecture in Xcode 5.1 您必须在Xcode 5.1中更改为体系结构
AFNetworking v2.2.1 fixes this issue. AFNetworking v2.2.1解决了这个问题。
https://github.com/AFNetworking/AFNetworking/blob/master/CHANGES https://github.com/AFNetworking/AFNetworking/blob/master/CHANGES
you probably select as simulator : iPhone Retina (4-inch 64-bit ). 你可能选择模拟器:iPhone Retina(4英寸64位 )。 Try with the 32 bits 试试32位
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.