Play Tic Tac Toe game with TCP/IP socket connection. Log Console on screen is available for showing logs connection, disconnect, failure in connection and data passing with socket. For managing socket programming “GCDAsyncSocket” is used. Apple's native CFNetwork framework is used for manage Bonjour service using NetService. Project structure is using MVP architecture. -> Swift 5.0
Follow the full tutorial here. https://medium.com/@dhavaltrivedi_56634/socket-programming-netservice-gcdasyncsocket-bonjour-for-ios-d01df0b53aca
Note: Bonjour is discovering services for devices with the same wi-fi network. So, if you are hosting and joining both with the simulator, there is no problem, but if you are trying to connect simulator and device or device to device make sure both are connected with the same wi-fi network.