sourcegit icon indicating copy to clipboard operation
sourcegit copied to clipboard

MacOS - Apple Silicon - App is Damaged

Open ybeapps opened this issue 1 year ago • 3 comments

I believe it's not issue in this repo, because I ran the build and package locally and it worked great... I think it's something with the "setup-dotnet" action I also found this PR: https://github.com/actions/setup-dotnet/pull/539

since it's not working, I think we should track it here in this repo but the only possible solution will be a workaround unless setup-dotnet action will fix the issue (if I'm correct and the issue is from there)

BTW, it's not urgent because the Intel based version works too on Apple Silicon

ybeapps avatar Aug 20 '24 13:08 ybeapps

did you run sudo xattr -cr /Applications/SourceGit.app?

love-linger avatar Aug 20 '24 13:08 love-linger

The app packaged by CI haven't been signed with a valid developer certificate (I do NOT have one). You need to run sudo xattr -cr xxx/SourceGit.app to remove the com.apple.quarantine attribute that added by macOS automatically after an unsigned app downloaded from web.

love-linger avatar Aug 20 '24 13:08 love-linger

well, the way I run it is like this

  1. download
  2. move to Applications
  3. launch
  4. see error
  5. open System Settings -> Security
  6. I see a warning that I tried to open downloaded app
  7. click Allow
  8. click Open

I believe this is the same as running this command- it works for x64, but not working for arm64

see the errors:

x64: image

arm64: image

but when I build locally - performing the same actions from GitHub workflows of the arm64 matrix - I'm getting an Application that is working!

Could you please run sudo xattr XXXX/SourceGit.app to see if there exists com.apple.quarantine attribute attached to the arm64 app?

love-linger avatar Aug 21 '24 02:08 love-linger

@love-linger wow - this is weird.. it worked! I wonder why the message was that this app is "Damaged" and not the "verification" message

it had com.apple.quarantine so I removed via your command and it worked: sudo xattr -cr SourceGit.app

ybeapps avatar Aug 21 '24 06:08 ybeapps

Since a few people have mentioned this issue, I will consider signing up for an Apple developer account later to solve this problem once and for all.

love-linger avatar Aug 21 '24 06:08 love-linger