在 Xcode 中,您可以使用快捷键 "Option + 回车" 快速克隆一行代码。也可以选中要克隆的一行,然后在菜单栏中选择 "Edit" > "Duplicate Line or Selection" 来完成操作。