Tracktion / choc

A collection of header only classes, permissively licensed, to provide basic useful tasks with the bare-minimum of dependencies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webview on macos flaky?

dbadb opened this issue · comments

Running the choc test app in webview mode on MacOS, I get the following

2023-06-10 15:08:03.981 chocTest[15644:40884840] *** NSForwarding: warning: object 0x12f611680 of class 'CHOCDesktopWindowDelegate_486194631' does not implement methodSignatureForSelector: -- trouble ahead
2023-06-10 15:08:03.983 chocTest[15644:40884840] *** NSForwarding: warning: object 0x12f611680 of class 'CHOCDesktopWindowDelegate_486194631' does not implement doesNotRecognizeSelector: -- abort

Running the same test without the webview arg, I get:

========================================================
 Passed:      89
 Failed:      1
  Failed test: MessageLoop/Timers
========================================================

FAILED: ./choc_tests.h:2345
Expected messageCount (0) == 13 (13)

My machine is a m1 mini running MacOS ventura 13.2,
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.3.0

I have verified the webview functionality on win32 and linux. I will keep digging, but if anyone has pointers...
cheers, Dana

Turns out this is the error you get if you fail to include the WebKit framework during build.
(closing). Sorry for the noise.