My setup for debugging RenderDoc Mac using Xcode is to have Xcode launch qrenderdoc and automatically attach to it. When I first started doing this I had a problem where the process would quit with an error about unknown command line argument ie.
QTRD 057176: [04:33:05] qrenderdoc.cpp( 197) - Error - "Unknown options: N, S, D, o, c, u, m, e, n, t, R, e, i, s, i, o, n, s, D, e, b, u, g, M, o, d, e."
Until today I had worked around this problem by commenting out the code which would quit if an unknown command line arugment was found.
I was a bit confused about why Xcode was adding extra command lines which were not set in the project and looking at the argc, argv parameters passed to main there are three arguments, the extra two arguments being passed are
-NSDocumentRevisionsDebugMode YES
WIth a bit of internet searching tracked down the source of the extra command line arguments to the "Allow debugging when browsing versions" option in the Xcode Run options for the qrenderdoc target

Disabling that option prevents the extra command line arugments being added and makes the debugging process much smoother without an interuption on every launch of qrenderdoc from Xcode.