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

清理编译文件

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容