As well as the Deployment Target, you need to set the Base SDK.
Go to the Project menu, then Edit Project Settings. Select the Build tab, and near the top, there is a Base SDK setting.
Sometimes, you also need to clean all targets, and restart Xcode for it to work properly.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…