Greetings,
My code was working fine on a project utilizing the USGS API. I can still gather the data fine via my REST client so I know the data stream has not changed. Somewhere after updating to Xcode 12, I now get this error (yet I get a 200 response from the server) in my iOS app. I get the weird error above in the console followed by a lot of blank lines then this at the bottom of the debug console:
2020-10-17 11:56:48.320587-0400 RiversUp[21491:12725094] Fatal error: Can't remove first element from an empty collection: file Swift/RangeReplaceableCollection.swift, line 624
After several seconds my app has crashed and this happens on both the simulator and on the device in debug.
I am currently running Xcode 12.0.1 and building for a minimum of 14.0 on iOS. I have an independent watch app as well that uses the same API calls and is getting the same errors when building for a minimum of watchOS 7.0.
Any help would be greatly appreciated as this is a total app killer.
Thanks,
Mark
My code was working fine on a project utilizing the USGS API. I can still gather the data fine via my REST client so I know the data stream has not changed. Somewhere after updating to Xcode 12, I now get this error (yet I get a 200 response from the server) in my iOS app. I get the weird error above in the console followed by a lot of blank lines then this at the bottom of the debug console:
2020-10-17 11:56:48.320587-0400 RiversUp[21491:12725094] Fatal error: Can't remove first element from an empty collection: file Swift/RangeReplaceableCollection.swift, line 624
After several seconds my app has crashed and this happens on both the simulator and on the device in debug.
I am currently running Xcode 12.0.1 and building for a minimum of 14.0 on iOS. I have an independent watch app as well that uses the same API calls and is getting the same errors when building for a minimum of watchOS 7.0.
Any help would be greatly appreciated as this is a total app killer.
Thanks,
Mark