简体   繁体   English

iOS设备未在Xcode 9.1中连接到Internet

[英]iOS Device is not Connecting to Internet in Xcode 9.1

My iOS project is running but getting no internet access in this project, In Safari browser internet is fine, but only in the project i am unable to access internet. 我的iOS项目正在运行,但在该项目中无法访问互联网,在Safari浏览器中可以正常使用Internet,但仅在该项目中我无法访问互联网。

  • xcode project not connect to internet , already access internet in safari. xcode项目未连接到Internet,已在Safari中访问Internet。
  • Safari Internet access done, Safari互联网访问已完成,
  • Project login is not working internet access error xcode 9.1. 项目登录不起作用Internet访问错误xcode 9.1。

video link 影片连结

iOS devices should be connected same wifi networks and checked for connect via network under devices and simulators. iOS设备应连接到相同的wifi网络,并检查设备和模拟器下是否通过网络连接。 enter image description here 在此处输入图片说明

I think the issue is with the API's / http request / the url you are using. 我认为问题出在API的/ http请求/您使用的网址。 And the network (wifi / mobile data) you are using to make the login request. 以及您用来发出登录请求的网络(WiFi /移动数据)。

http request / the login url you are using may require your company's authorized wifi, to get response from that login request. http请求/您使用的登录URL可能需要公司的授权wifi,才能从该登录请求中获得响应。 I also faced the same issue when using a public wifi of my company, then informed this issue to the network team and backend team, then they gave access for some other authorized wifi, then i got the response successfully. 在使用公司的公共wifi时,我也遇到了相同的问题,然后将此问题通知了网络团队和后端团队,然后他们为其他授权的wifi提供了访问权限,然后我成功获得了响应。

So discuss with your network team and the backend team. 因此,请与您的网络团队和后端团队讨论。

And check the login url is working fine in Postman. 并检查登录网址在Postman中是否工作正常。 It is an application used to check the API's / url's by the backend team are working fine. 它是一个用于检查后端团队的API / URL是否正常的应用程序。 In that you just need to put the url and the parameters required. 这样,您只需要输入url和所需的参数即可。

Are you in China? 你在中国吗 You may go to settings and choose Network, and then find your app in list. 您可以转到设置并选择“网络”,然后在列表中找到您的应用程序。 So you can change the net setting for your app. 因此,您可以更改应用程序的净设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM