Mac开发

Unity 解决VSCode无代码提示

  1. Go to settings. (Preferences -> Settings on Mac)
  2. Search "omnisharp".
  3. Find the section "Omnisharp: Use Global Mono".
  4. Set it to "always".
  5. Reload the window / Or select "Restart".

打开文件权限出错

出现下面类似的提示信息

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

清理编译文件

你可能感兴趣的:(Mac开发)