ServiceStack.Swift Empty generated code if the server returns a 500 error

Hello,

I had a ‘funny’ behavior while testing the Swift client: my server was having issues (nothing related to ServiceStack) and it was throwing 500 errors for every requests and when I tried to update my Swift reference from inside XCode I received a blank page for the code. Another time I got the error page HTML instead of the generated Swift code.

Do you thing that you could add an additional validation in the Swift plugin to check for a successful request?

Thanks

Will do, I’ve added this as an issue you can track at: https://github.com/ServiceStack/ServiceStackVS/issues/14

I’ve added error handling for Update Reference in the XCode plugin.

Latest version is available here

Let me know if you find other situations of unexpected behaviour with the plugin. Thanks!