What are the shortcuts in Xcode to show/hide Navigator, Debug, and Utilities?

In order to show or hide the Navigator, Debug area, and Utilities, use the following shortcuts. Navigator: Command+0 Debug area: Shift+Command+Y Utilities: CommandOption+0 (Those are zeros, not the letter O.) Here is an image from this article (which itself was adapted from this blog post): Useful links about Xcode shortcuts: Xcode Efficiency Tips: Keyboard Shortcuts … Read more

How to point Xcode to an old SDK so it can be used as a “Base SDK”?

You’ll need to add a symlink to the old SDK (this is generally easier than copying). cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs ln -s /path/to/old/SDK . This works fine back to 10.5. Beyond that things get a little more complicated… While there’s no promise in future versions of Xcode that this will be supported, I’ve chatted with the Xcode … Read more

How to disable Interface Builder document versioning from auto updating?

Version 4.6.3 of Xcode resolves this issue. However, as the comments state, you all need to be running that same version. If four developers are on 4.6.3, and one is on a previous version, then that developer will experience the same issue. However, if they do not commit that change then it will not affect … Read more

Can Xcode Use “Folder References” for Code?

The simple (and very unfortunate) answer is that Folder References under Xcode remain broken and buggy, they don’t work. Tested 04-Mar-2017 in Xcode 8.2.1 Below is an example exploration so you do not have to waste your time replicating the Xcode failure. (incidentally buggy Xcode crashed twice while I was producing this example) Per the … Read more

Xcode Workspace vs Nested Projects

I use workspaces when I want to combine projects while also maintaining project independence. An example where I use workspaces is series of tutorial projects that progress from very simple to more complex. Each project can function as a standalone project, but grouping them together in a workspace helps my organization of the overall project. … Read more

‘Expressions are not allowed at the top level’ if the module is not main.swift

Apparently yes, as per this answer. However, there are no citations as to this behaviour. Update This is documented on the Swift blog: … earlier we said top-level code isn’t allowed in most of your app’s source files. The exception is a special file named “main.swift”, which behaves much like a playground file, but is … Read more