I posted an earlier reference but I think this one is more accurate and reflective. So I am making a call to the USGS api to pull some water gauge information. My calls worked perfectly until built with Swift 5.3 (Xcode 12). I am able to get a 200 status code but then after multiple seconds of text appearing and disappearing in the debug console, I get this error:
Fatal error: Can't remove first element from an empty collection: file Swift/RangeReplaceableCollection.swift, line 624
This occurs during the response generation and not in parsing the JSON (never makes it to that point). The app crashes with an unexpectedly unwrapped nil error. I have seen others have a similar issues with certain API calls, and some are even having the issue when querying HealthKit! This seems to be an error in the Swift codebase so not sure what can be done, but any help or suggestions would be welcome.
Thanks!
Mark
Post
Replies
Boosts
Views
Activity
So this is an issue that is currently driving me batty in that I can no longer view my containers in the CloudKit console since it moved over to the new version (summer 2021). I know the containers exist because I have applications that successfully use them. I have 2 developer accounts (a personal one and a business one) and this is the same story for both of them. Prior to the change I could easily see my containers (of which I have multiple ones in both). The really weird thing though is I can see my two oldest containers from my personal account that were created I think back in around 2016.
Help please as this is preventing me from testing several items!