November 15th, 2020
In Xcode 12 Apple consolidated many of their iOS app project templates into one template: App. If you are following a tutorial written for an older Xcode version that has templates like single view app and master-detail app, choose the App template.
October 1st, 2020
As part of Xcode 12, Apple added project templates for creating SwiftUI apps that run on both iOS devices and Macs. In the Xcode 12 betas, these project templates appeared in the Multiplatform section. When Apple released iOS 14 in September, they also released Xcode 12.0. If you install Xcode 12.0 and create a project, […]
August 11th, 2020
If your Xcode project has multiple targets and you add a Swift package, Xcode will let you add the package to only one of the targets. How do you add the package to the other targets? Select a target from the project editor. Click the Add button in the Frameworks, Libraries, and Embedded Content section. […]
April 29th, 2020
People constantly post on Apple’s developer forums complaining that when they try to install Xcode, an alert opens saying they don’t have enough disk space to install it. These people always say they have enough space because they have more free space on their disk than the Xcode download. Usually the person asking the question […]
January 23rd, 2020
Xcode 11 provides a subtle button to export a Mac app archive. In the Organizer, select an archive and scroll so you can see the Status column for the archive. Move the cursor over the Status column to make the Export App button appear.
October 19th, 2019
This post lists all the changes I found in Xcode 11 on version control. Code Review Button Xcode 11 adds a code review button to the toolbar that lets you view the changes you made to the currently selected file. The code review button is the button with the two arrows facing right and left. […]
September 25th, 2019
When you create an iOS or Cocoa app project in Xcode 11, there is a User Interface menu in Step 2 of the New Project Assistant. For iOS projects the user interface choices are SwiftUI and storyboard. For Mac projects the user interface choices are SwiftUI, storyboard and xib file. Xcode defaults to using SwiftUI […]
September 17th, 2019
Xcode 11 makes it easier to open new editors. You can open a new editor without switching to the Assistant Editor. Either choose File > New > Editor or click the Add Editor button in the jump bar. Xcode defaults to adding editors to the right, stacking the editors horizontally. If you want new editors […]
June 17th, 2019
Suppose you have an Xcode project with spaces in the name. My App In your unit tests you want to import the module so you can access your app’s classes in your unit tests. If you import the app project with the spaces, @testable import My App You’ll get errors from the compiler. How do […]
March 10th, 2019
Xcode 10 has bug/limitation in creating Bitbucket repositories for your projects. If the name of the repository has uppercase letters, such as MyProject, an alert pops up when you create the repository with the helpful message An unknown error occurred. The workaround is to use all lowercase letters in the repository name, such as myproject.