Hi Rui, thanks for reaching out us.
With regard to your issue, I confirm that whilst VS is more "tolerant" with regard to code-style check, Xcode is less.
The code style check, which is embedded in our source processor, expects tabs rather than spaces for code indentation and it could happen that either Tabs has not be set in Xcode preferences, as preferred indentation method, or that you've copied and pasted some portion of code that was indented with spaces.
Please check your indentations for using tabs rather than switching off completely the style check.
Best, R