For me, it is quite a simple rule of thumb.
(1) Turn on "Tabs Indent: [Always]" under the "Syntax-aware indenting" of the "Indentation" preferences pane of the Xcode preferences panel.
(2) In your source, select-all and hit <tab>.
Whatever formatting results, stick with it. Get used to it. Embrace it. Doing so means two things:
you can "select-all" and <tab> at any time to reformat your source file without worrying about lots of changes
if Xcode generates wildly wrong formatting, it is almost exclusively because you have a syntax error in your code.
Any number of folks will argue for any number of very specific formatting guidelines. All well and good but, ultimately, letting the tools do all the work will reduce time consumed and increase the # of problems the tools will detect automatically.
You are still responsible for sticking in newlines where you find them aesthetically pleasing.