If you need to have some data in an external file and read it in playgrounds, here’s how to do it in Xcode 11.3 using Swift 5.1.
Usually Cmd + Shift + K will do a clean but if not, the derived data is in ~/Library/Develop/Xcode/DerivedData cd into that directory and do rm -r [directory name]
To get the SQLite database for your app on all simulators on which it’s installed: find ~/Library/Developer/CoreSimulator/Devices -name MyAppName.sqlite (Xcode 10) Open Finder and do Shift + Cmd + G to bring up the “Go to folder” dialog. Paste in the file path and you should see it. It will be garbled if you try… Continue reading Find your SQLite Database for Xcode 10
I hate that Xcode doesn’t include a duplicate line shortcut. I have to keep adding it in every time a new version of Xcode comes out and every time, I have to Google it, so I’m pasting the SO post here that worked most recently. There must be a better way, but until I figure that… Continue reading Custom key bindings in Xcode 8
Reference to StackOverflow answer so I don’t have to keep searching for it: https://stackoverflow.com/a/42127066/4934991
I don’t think you’re really supposed to do this since the option is grayed out in Xcode when you select Editor -> Embed in Navigation Controller, but a hacky way to get around it is to control-drag from a free-standing Navigation Controller to the Tab Bar Controller and select “root view controller.”
Control-click from the Tab Bar Controller to the controller you want to be the new tab and select “view controllers.”
In Xcode, open Preferences and go to the “Key Bindings” section. Type “outline” in the search filter box. Select “Show Document Outline” and double-click to the right, in the “Key” column. A text box should appear and you can type in your new shortcut. I used Cmd+9.