Skip to content

Xcode

history version

参考

hot keys

control + shift + I: format file
cmd + L: 快速定位到指定行数

代码操作

快捷键功能
Cmd + B编译项目
Cmd + R运行项目
Cmd + .停止运行
Ctrl + Cmd + ↑切换.h/.m文件
Cmd + Shift + O快速打开(Open Quickly)

调试

快捷键功能
Cmd + \切换断点
F6步过
F7步入
Cmd + Shift + Y显示/隐藏调试区

界面管理

快捷键功能
Cmd + 0显示/隐藏导航器
Cmd + Alt + 0显示/隐藏检查器
Cmd + Shift + Y显示/隐藏调试区域

download version

link

support

Minimum requirements and supported SDKs

link

sol

error: unable to find utility "simctl"

unable to find utility "simctl"

xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
error Could not get the simulator list from Xcode. Please open Xcode and try running project directly from there to resolve the remaining issues.
Error: Command failed: xcrun simctl list --json devices

refer

While running Xcode, open the Xcode menu, go to Preferences, then select Locations
In Locations, "Command Line Tools", choose your version of Xcode.
It should be fine.

吃好喝好 快乐地活下去