Compiling error in Xcode for Traccar Client

Andreas Kern4 years ago

Hello,
perhaps someone ca help me.

I imported the TraccarClient project form githup into Xcode (latest version)
I installed the pods.
And opened project by clicking TraccarClient.xcworkspace.

When i want to compile the app to archive or for test run on my iOS Device following issue occures in line 90 of AppDelegate Swift with the

   for item in preferenceSpecifiers {
            if let key = item.object(forKey: "Key") as? String {          Issue Message: Ambiguous use of 'object(forKey:)'
                defaults[key] = item.object(forKey: "DefaultValue")
            }
        }

Thanks in advance for you help

Anton Tananaev4 years ago

The issue is fixed. Looks like a change in new version of Swift or SDK.

Andreas Kern4 years ago

Thank you very much!!!

Now it works!