I'm a software developer based in the UK. I am blogging regularly about software development & Apple

Xcode launch arguments cheat sheet

CoreData

-com.apple.CoreData.SQLDebug [1,2,3]
  print SQL queries
-com.apple.CoreData.Logging.stderr [1,2,3]
  to be used with SQLDebug
-com.apple.CoreData.ConcurrencyDebug [1,2,3]
  show and halt on concurrency issues
-com.apple.CoreData.SyntaxColoredLogging [1]
  enable syntax coloring
-com.apple.CoreData.SQLiteDebugSynchronous [0,1,2]
  0=OFF,1=NORMAL,2=FULL
-com.apple.CoreData.SQLiteIntegrityCheck [1]
  enable additional integrity checking
-com.apple.CoreData.MigrationDebug [1]
  log information about exceptional migration cases
-com.apple.CoreData.ThreadingDebug [1,2,3]
  enables assertions to enforce Core Data's multi-threading policy

Localisation

-AppleLocale en_GB
  starts app with selected locale
-AppleLanguages (en)
  starts app with selected locale
-NSShowNonLocalizedString [YES,NO]
  highlight non localised strings
-NSDoubleLocalizedString [YES,NO]
   double strings to test layout

User Interface

-NSForceRightToLeftWritingDirection [YES,NO]
   enforces right to left
-UIViewShowAlignmentRects [YES,NO]
  shows alignment rects
-UIStateRestorationDebugLogging [YES,NO]
  enable restoration debugging
-UIStateRestorationDeveloperMode [YES,NO]
  skip the deletion of the restoration archive when the app crashes

Server-side Swift with Kitura