Skip to content
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 - Apple Silicon - App is Damaged #379

Closed
ybeapps opened this issue Aug 20, 2024 · 6 comments
Closed

MacOS - Apple Silicon - App is Damaged #379

ybeapps opened this issue Aug 20, 2024 · 6 comments
Assignees
Labels
need-more-info Extra information or replay is needed os-macos This issue only exists on macOS

Comments

@ybeapps
Copy link
Contributor

ybeapps commented Aug 20, 2024

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: actions/setup-dotnet#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

@love-linger
Copy link
Collaborator

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

@love-linger
Copy link
Collaborator

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 love-linger self-assigned this Aug 20, 2024
@love-linger love-linger added the need-more-info Extra information or replay is needed label Aug 20, 2024
@yitzchak-ben-ezra-ecoplant
Copy link

yitzchak-ben-ezra-ecoplant commented Aug 20, 2024

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!

@love-linger
Copy link
Collaborator

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

@ybeapps
Copy link
Contributor Author

ybeapps commented Aug 21, 2024

@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 ybeapps closed this as completed Aug 21, 2024
@love-linger
Copy link
Collaborator

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 love-linger added the os-macos This issue only exists on macOS label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-more-info Extra information or replay is needed os-macos This issue only exists on macOS
Projects
None yet
Development

No branches or pull requests

3 participants