toUIntMax() 和 toIntMax() 从 Swift 4 中移除

toUIntMax() and toIntMax() removed from Swift 4

Swift 4 中的方法 toUIntMax() 和方法 toIntMax() 被什么替换了?错误发生在 FacebookCore 框架内。

如有任何帮助,我们将不胜感激

IntMax 的概念已作为 SE-104 的一部分被完全删除。

Converting from one integer type to another is performed using the concept of the 'maximum width integer' (see MaxInt), which is an artificial limitation. The very existence of MaxInt makes it unclear what to do should someone implement Int256, for example.

The proposed model eliminates the 'largest integer type' concept previously used to interoperate between integer types (see toIntMax in the current model) and instead provides access to machine words. It also introduces the multipliedFullWidth(by:), dividingFullWidth(_:), and quotientAndRemainder methods. Together these changes can be used to provide an efficient implementation of bignums that would be hard to achieve otherwise.

在这种特定情况下,FB SDK 应该简单地使用 UInt64([=18=]) 初始值设定项,由于新协议,它现在可用于任何 BinaryInteger 类型。

你现在也可以,可以 select Swift 3.2 under Pods -> Targets -> ObjectMapper -> Swift language version option