在mac上新装Xcode11,新创建了一个工程,点击运行一直build fail,并且没有显示报错。
点击xcode左侧边栏最右边的Show the Report navigator,显示报表导航器,如下图
报错信息为Showing Recent Issues
Couldn't create workspace arena folder '/Users/hyt/Library/Developer/Xcode/DerivedData/123-cgftnamqrikmyedfommrddbgiztn': You don’t have permission to save the file “123-cgftnamqrikmyedfommrddbgiztn” in the folder “DerivedData”.
/Users/hyt/Library/Developer/Xcode/DerivedData/123为工程目标路径,hyt为自己用户名称,你需要选择/Users/你的用户名/Library/Developer/Xcode复制,在命令行输入sudo chmod -R 777 /Users/你的用户名/Library/Developer/Xcode即可