I found the solution so keeping it up in case in helps anyone else. I had this code:
await withTaskGroup(of: Void.self) { group in
for file in referenceObjectFiles {
let objectURL = Bundle.main.bundleURL.appending(path: file)
group.addTask {
await self.loadReferenceObject(objectURL)
await self.finishedOneFile()
}
}
}
and it worked when I replaced it with this:
for file in referenceObjectFiles {
let objectURL = Bundle.main.bundleURL.appendingPathComponent(file)
Task {
await self.loadReferenceObject(objectURL)
await self.finishedOneFile()
}
}
I guess you can't use withTaskGroup in Xcode 16...