If you need to hit the HTTP request from Xcode and above you need to specify the URL in info.plist file to allow the request. You can allow all the http request by adding arbitrary load to “YES” in info.plist file.
How to do it?
Go to info.plist
add App Transport Security Settings & Allow Arbitrary Loads
Set it to YES