6

Xcode 9, other Simulators running well and iPhone X appear this error message,AFNetworking cannot work.

mokagio
  • 16,391
  • 3
  • 51
  • 58
shenchao
  • 71
  • 1
  • 2
  • I noticed this as well. Left my app running on the iPhone X Simulator by accident, and when I came back the console was flooded with those messages. All at either 1 or 20 seconds distance. In my case networking works fine, I'm using vanilla URLSession though. – mokagio Nov 14 '17 at 11:44
  • In the answers to these questions there might be something useful for you @shenchao. https://stackoverflow.com/questions/34359304/could-not-successfully-update-network-info-during-initialization – mokagio Nov 14 '17 at 11:47
  • Possible duplicate of [Why can't this iOS app access the network?](https://stackoverflow.com/questions/16975525/why-cant-this-ios-app-access-the-network) – jszumski Feb 09 '18 at 13:26

2 Answers2

2

When this happened to me I was able to work around it by following the suggestion in this answer. That is, setting the Simulator location to Apple.

screenshot of Simulator.app menu item to set location

mokagio
  • 16,391
  • 3
  • 51
  • 58
0

even though if by changing location to apple problem not solve try to run it on other simulator like iphone 8 plus or so ,your problem will be solved

Amit Verma
  • 427
  • 4
  • 6