I resolved the issue by installing xcode 8.3.3 and set it up as the default compiler, it is not exactly a solution but is something at least.
In case you want to try the same:
- Download xcode 8.3.3 from the AppStore
- Open your applications window
- Create a new folder, like Xcode8
- Unpack the content of the downloaded xip inside the xcode8 folder
- Open the terminal
- Execute sudo xcode-select --switch /Applications/XCode8/Xcode.app
- Restart the computer
To check if the change takes effect you can open the console again and execute: sudo xcode-select --print-path, you should see the path to xcode 8.3.3
Now just regenerate the project files and go ahead.
NOTE: Is not necessary to uninstall the current version of XCode, both of them can be used in the same machine (but UE uses the default one to compile), so in the future if you want to back to the latest version of xcode just use the xcode-select command again.