Error Type 'int' has no member 'random'

Macedo6 years ago

When i compile in ios the traccar client i get this error on AppDelegate.swift file in line 45

Let identifier = "\Int.random (in: 10000..<1000000))""

Pkease help me

Thanks

Renzo

Anton Tananaev6 years ago

You probably changed something or converted file to the new version of Swift.

Macedo6 years ago

Thank you fot your replay.

I didt change nothing, may be the version of my Swift

How can i solve it? or run whit older version of Swift?
Thanks

Anton Tananaev6 years ago

If you upgrade version of Swift, obviously you have to fix any migration issues. If you don't want to do it or don't know how to do it, you should run original code as it is.