Hello ! I was studying swift by Apple's book "Develop in swift Data Collections" and in some projects book provided server application
to which in IOS app were made url requests to send and receive data. How can I create such server using swift and xcode without any frameworks or external libraries ?
How to set up XCode Server
This should help you set up the local web server on your Mac (it is not Xcode server, just a web server).
https://discussions.apple.com/docs/DOC-250003138
This is older and maybe a bit outdated, but should help as well.
https://websitebeaver.com/set-up-localhost-on-macos-high-sierra-apache-mysql-and-php-7-with-sslhttps