Unity 解決VSCode無(wú)代碼提示
- Go to settings. (Preferences -> Settings on Mac)
- Search "omnisharp".
- Find the section "Omnisharp: Use Global Mono".
- Set it to "always".
- Reload the window / Or select "Restart".
打開(kāi)文件權(quán)限出錯(cuò)
出現(xiàn)下面類(lèi)似的提示信息
Error Domain=NSCocoaErrorDomain Code=257
"The file “xxx” couldn’t be opened because you don’t have permission to view it."
UserInfo={NSUserStringVariant=(
Folder
), NSURL=file:///xxxx, NSFilePath=/xxxx,
NSUnderlyingError=0x600000c8d470
{Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}
}
解決方法:把 entitlements 文件里的 App Sandbox 改成 NO