TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

Switch from AggregateDictionary to Core Analytics

Forums > SwiftUI

Hi everyone, I'm new to Swift and programming in general. I'm currently teaching myself because I've found it fun. I have made a small app as a learning project and am currently encountering an error message to which I cannot find a solution. I have looked through some tutorials for the app and tried to adapt the code. That worked quite well. I have a few small error messages in the app that I would now like to get to the bottom of. In the new Xcode version, the following error message appears in the console when the app is started:

AggregateDictionary is deprecated and has been removed. Please migrate to Core Analytics.

Apparently I'm using outdated code somewhere, but I can't find it. When I use the full text search, I can't find anywhere that uses AggregareDictionary. What could be the problem? How do I fix the error? Thank you for your support.


I have this problem too/this error message. I could post code of my app if it will help...


I do not have a quite answer for this. It happens to me when I test using my physical device, my iPhone for instance; when I test an App using simulators, iphone or ipad simulators, I do not get such warning/error. It could be a clue. Actually, I submitted my last App with this error and it was approved by Apple.


Hacking with Swift is sponsored by Superwall.

SPONSORED Superwall lets you build & test paywalls without shipping updates. Run experiments, offer sales, segment users, update locked features and more at the click of button. Best part? It's FREE for up to 250 conversions / mo and the Superwall team builds out 100% custom paywalls – free of charge.

Learn More

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.