Mac下新建项目会给出错误
:-1: error: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.
但是直接运行 /usr/bin/xcodebuild 也是会错误
实际上需要如下执行
- sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
- sudo xcodebuild -license