I am trying to run a new version of my app that uses the MAG version 3.1 SDK for iOS framework.
It is still trying to connect to previous host. It all works fine within the XCode iOS simulator.
Have a look at the following SDK methods:-
Please let me know if this answers your questions or not.
CA Global Customer Success
If you are using a different server, and thus a different msso_config.json file, you could change the way you start MAS and force it to read a new config file. You can do that by following this doc: iOS Guides | CA Mobile App Services
I hope this helps.