Stuart Berg
Stuart Berg

Reputation: 18161

(Xcode and Python) error: unrecognized arguments: -NSDocumentRevisionsDebugMode

I'm using Xcode with a custom debugging scheme to debug my Python program. Under "Edit Scheme", I selected Python as the executable, but when I debug the program, I see an error due to unrecognized command line arguments.

error: unrecognized arguments: -NSDocumentRevisionsDebugMode

Where is that NSDocumentRevisionsDebugMode argument coming from? Why is Xcode adding that to the command line argument list?

Upvotes: 11

Views: 2462

Answers (1)

Stuart Berg
Stuart Berg

Reputation: 18161

In the "Edit Scheme" window, in the "Options" tab, uncheck "Document Versions".

Screenshot of the "Edit Scheme" window showing the option to deselect.

Upvotes: 21

Related Questions