Updating to swift 4 broke Facebook verification in my app with ‘toUIntMax()’ obsoleted

Viewed 536

I get two different error's for the same thing, it says on the Buildtime Error's tab "Swift Compiler Error" and in the drop down for it, it says 'toUIntMax()' was obsoleted in Swift 4. The next error says 'toUIntMax()' is unavailable

This is all under a toolbox icon for FacebookCore, and I don't know enough to go in and start messing with something in here, because I would probably create even more problems. Reading where it's at it looks like it's part of a function that says it does "Create an event that indicatest the user has rated an item in the app." and it's all in the swift file called AooEvent.BuiltIn.swift

I've looked for a solution but can't find anything from Apple, or on here.

1 Answers

‘toUIntMax()’ obsoleted

As per the link

Replace this:

$0.toUIntMax() as UInt64

With this:

UInt64($0)
Related