GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

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.

2      

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

2      

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.

2      

Hacking with Swift is sponsored by Alex.

SPONSORED Alex is the iOS & Mac developer’s ultimate AI assistant. It integrates with Xcode, offering a best-in-class Swift coding agent. Generate modern SwiftUI from images. Fast-apply suggestions from Claude 3.5 Sonnet, o3-mini, and DeepSeek R1. Autofix Swift 6 errors and warnings. And so much more. Start your 7-day free trial today!

Try for free!

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

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

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.