Open thanhnvpk01168 opened 3 years ago
@thanhnvpk01168 how fid you fix it? Me also facing the same issue on BigSur but in development environment as well.
Are you guys using electron forge?
Nope, I'm not using any boilerplate.
I'm facing the same issue. Has anyone already resolved the issue? Best regards.
This could be due to the app not having the screen recording permission and getting killed by macOS. Does the permission prompt show up in your case?
If not, try manually adding the screen recording permission to the binary active-win/main
shown in the error.
This is the error when i log in catch
my code: let result="" try { result = await activeWindow() } catch (error) { console.log("erorr: ",JSON.stringify(error)) }
error: { "killed":false, "code":null, "signal":"SIGILL", "cmd":"/Users/myname/Documents/projecttest/dist/mas/AppTest.app/Contents/Resources/app.asar.unpacked/node_modules/active-win/main", "stdout":"", "stderr":"" }
Environment: macOS Big Sur 11.2.3 electron:11.2.1 node: 14.15.0 active-win: 7.6.0
Can anyone help me urgently? thanks in advance