As long as you don't need any Xcode specific functionalities, you're of course free to choose whatever editor you want. See also tutorial for using the SFML CMake template:
https://www.sfml-dev.org/tutorials/2.6/start-cmake.phpAs for the error, web searches return tons of different answers, this seems like some Xcode issue. Try some solutions provided online.