-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
macOS: "Cypress" is damaged and can't be opened. You should move it to the Trash. #24822
Comments
Hi, simply go to Privacy settings on macOS and allow Cypress to start |
Thanks for this workaround, I've added full instructions below and linked to it to my post above. WorkaroundOpen System Settings (System Preferences on pre-Ventura macOS versions) and navigate to Privacy & Security (Security & Privacy on pre-Ventura macOS versions). Here you will see a button to allow Cypress to open anyway, even though it was not signed by a verified developer: Then try starting Cypress again, and choose "Open" from the prompt: |
This is still a problem that should still be fixed by the Cypress team though - probably the signing needs to be updated on the binary, similarly to the process @bahmutov was referring to in #8299 . (although it is probably not the same cause - I'm assuming binary signing isn't completely broken like it was in #8299) |
From CI logs, it does look like the 11.2.0 build was signed correctly for The Cypress code signing cert is still valid through @chrisbreiding tried reproducing this on Monterey with Cy 11.2.0 but was unable to. I'm going to update my Mac to Ventura and see if I can repro then. There were some changes to code signing in Ventura, I don't see how these would impact Cypress, but maybe it's something related: https://eclecticlight.co/2022/06/17/app-security-changes-coming-in-ventura/ @nikepol Were you also encountering this issue? If so, what version of OSX are you on? |
Hmm, I am not able to reproduce on M1 with macOS 13.0.1 and Cypress 11.2.0. @karlhorky Can you try running |
Sure - keep in mind that this is after I performed the workaround above.
|
Hmm. I found this issue on Electron's repo: electron/electron#35524 Seems related, a user is indicating that it only happens on arm64 for some reason. But apparently not all arm64 machines, since it worked fine for me... Is this your first time using Cypress on this machine? Is there any special security config on your machine? MDM, anti-virus...? I'm not super familiar with how macOS validates code signing, so I'm not sure where else to look for why this is happening. |
Not first time, I've used about 10 or 15 different versions before this with no issues. And no special security config... |
Just upgraded to Running the $ codesign -dv --verbose=4 /Users/k/Library/Caches/Cypress/12.0.2/Cypress.app
Executable=/Users/k/Library/Caches/Cypress/12.0.2/Cypress.app/Contents/MacOS/Cypress
Identifier=com.electron.cypress
Format=app bundle with Mach-O thin (arm64)
CodeDirectory v=20500 size=768 flags=0x10000(runtime) hashes=13+7 location=embedded
VersionPlatform=1
VersionMin=720896
VersionSDK=787200
Hash type=sha256 size=32
CandidateCDHash sha256=8e79505e453984aede96ba15ad0dfa66ab2136ed
CandidateCDHashFull sha256=8e79505e453984aede96ba15ad0dfa66ab2136ed20f7254308c7218af2063256
Hash choices=sha256
CMSDigest=8e79505e453984aede96ba15ad0dfa66ab2136ed20f7254308c7218af2063256
CMSDigestType=2
Executable Segment base=0
Executable Segment limit=16384
Executable Segment flags=0x1
Page size=4096
Launch Constraints:
None
CDHash=8e79505e453984aede96ba15ad0dfa66ab2136ed
Signature size=8982
Authority=Developer ID Application: Cypress.Io, Inc. (7D655LWGLY)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=08.12.2022 at 17:00:36
Info.plist entries=30
TeamIdentifier=7D655LWGLY
Runtime Version=12.3.0
Sealed Resources version=2 rules=13 files=16024
Internal requirements count=1 size=180 |
Since we haven't had any more reports, and this issue appears to be isolated to 1 user, and it's unclear how we could proceed with resolving this for you, I'm going to close this for now. Will re-open if this ends up being a bigger issue. |
Current behavior
Hi there! 👋 Thanks for your continued effort on Cypress, really helpful for testing!
The Cypress binary with
[email protected]
(11.2.0.1936146) causes an error on macOS 13.0.1 (22A400) (with M1 Apple Silicon):Desired behavior
Cypress should not crash and present a security warning on macOS.
Test code to reproduce
Any test code
Cypress Version
11.2.0
Node version
18.12.1
Operating System
macOS 13.0.1 (22A400)
Debug Logs
Workaround
Open System Settings (System Preferences on pre-Ventura macOS versions) and navigate to Privacy & Security (Security & Privacy on pre-Ventura macOS versions). Here you will see a button to allow Cypress to open anyway, even though it was not signed by a verified developer. Full instructions: #24822 (comment)
Other
No response
The text was updated successfully, but these errors were encountered: