CefView / CocoaCefView

A Cocoa View object encapsulated CEF view based on NSView
MIT License
19 stars 6 forks source link

项目可以运行 但是会打印一些错误,会影响吗? #9

Closed yuanjunxiao closed 2 years ago

yuanjunxiao commented 2 years ago

这个error会打印一遍 2021-12-14 14:26:16.383360+0800 CefViewWing (GPU)[52431:20128290] [1214/142616.383192:ERROR:vt_video_encode_accelerator_mac.cc(537)] VTCompressionSessionCreate failed: -12903 [1214/142616.383192:ERROR:vt_video_encode_accelerator_mac.cc(537)] VTCompressionSessionCreate failed: -12903

下边的打印信息会不停的打印,请问是什么原因呢? 2021-12-14 14:27:24.400414+0800 CefViewWing (GPU)[52431:20128338] [User Defaults] Couldn't read values in CFPrefsPlistSource<0x60000097c500> (Domain: kCFPreferencesAnyApplication, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access

tishion commented 2 years ago

这个跟沙盒访问文件权限有关,可能需要把你的主app跟CefWing添加到同一个app group里面