salesforce ios sdk – Changing the connection URL gives "Unable to connect to the server. The data could not be read because they are not in the correct format" with the help of salesforceSDK Swift

With the help of ForceiOS, to connect my application to salesforce with the help of connectedAPP. We have two environments in salesforce, TEST and PROD. I've passed some URLs in the TEST environment in "SFDCOAuthLoginHost" and made the respective changes to its "redirectURI" and "ConsumerKey", it works perfectly well.

But when I changed my environment from TEST to PROD and I changed its "SFDCOAuthLoginHost", "redirectURI" and "ConsumerKey", I got an error like
& # 39; Can not connect to the server. The data could not be read because they are not in the correct format. WebView is not loaded, I immediately receive the error mentioned above.

When comparing between TEST and PROD, according to the xCode logs, loginHost and the domain pass as expected.

I am not able to locate the source of this problem