-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: '"Cypress.app" is damaged and can't be opened.' error on mac. #43
Comments
Yeah I hear you @mikelikespie. I'm honestly not sure how to fix this from within the bazel rule since this is a operating system level security setting. If you have any ideas of what can be done to address this in code please let me know and I'll implement it. But I'm sort of stuck at the ideation phase |
I encountered this problem as well and, after some experimentation, came to the conclusion that macOS refuses to run the binary because the copying that's done here mangles the internal structure of the We're working around this for now by patching Do you think there's a way to copy it while keeping it intact enough to satisfy macOS? |
That's a wonderful discovery! That gives me something to play around with at least. We can try a couple things to start
I'll run some experiments and see which option works. In the worst case, it seems like you've proven that #3 works :) |
here is a minimal reproduce for the issue https://github.com/KatSick/rules_cypress_bug_macos |
What happened?
When running a cypress test on macos, I am seeing a security error that won't let the app being run from the command line (without a pretty intrusive workaround).
This error comes up when running a cypress test and doesn't
This appears in settings. One can work around it by hitting the "Open Anyway" button, but that isn't really tenable for having other engineers do it.
Version
Development (host) and target OS/architectures:
m1 mac
macos 13.4.1 (c) (22F770820d)
Output of
bazel --version
:saw in both
bazel 6.2.0
andaspect 5.2.1
(from rules_cypress clone)Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
How to reproduce
Any other information?
No response
The text was updated successfully, but these errors were encountered: