MacOS - Apple Silicon - App is Damaged
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
did you run sudo xattr -cr /Applications/SourceGit.app?
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.
well, the way I run it is like this
- download
- move to Applications
- launch
- see error
- open System Settings -> Security
- I see a warning that I tried to open downloaded app
- click Allow
- 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:
arm64:
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 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
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.