Issue with release build

I have ported my app from cocos 2.x code to 3.0 alpha and trying to build a release build for my application for windows and mac osx. Game works fine in debugging mode but it doesn’t work when i send my binaries to friends.

On windows it gives “Access Denied trying to access 0x0000000 memory location” and on mac “Not a valid application, ask your developer to fix this application”