Hit this same issue two years back with an older iOS app. Google killed those XML feeds in 2020 - that’s why your AFXMLRequestOperation won’t work no matter what you try. The endpoint’s just dead. I wasted days debugging identical code before figuring out the API was gone. Your code’s fine for the old system, but you’ll have to switch to Sheets API v4 with proper auth and JSON parsing instead of XML.
Totally agree - that XML stuff is ancient. Tried it a while back and it’s dead. Stick with Google Sheets API v4 for JSON. Yeah, it’s a pain to set up, but it actually works.
The issue you’re encountering likely stems from the deprecation of the Google Sheets XML feeds API, which was phased out several years ago. I faced similar challenges while updating some legacy systems. To resolve this, consider migrating to Google Sheets API v4, which is currently supported. Although it requires some initial setup, including OAuth2 and switching to JSON responses, it provides a more reliable and functional solution. You can continue using AFNetworking for your HTTP requests, but be prepared to parse JSON instead of XML.