Process killed immediately when running on macOS
isidjjchdhdhdh opened this issue · 12 comments
Version
v1.12.2
Platform
macOS 14
Steps to reproduce
Terminal looks like this:
(base) ➜ YoutubeDownloader.osx-arm64 ./YoutubeDownloader
[1] 4396 killed ./YoutubeDownloader
Details
can't open the app, no matter running in terminal or clicking the "YoutubeDownloader" in the folder
p.s. already allowed this app in system settings
Checklist
- I have looked through existing issues to make sure that this bug has not been reported before
- I have provided a descriptive title for this issue
- I have made sure that this bug is reproducible on the latest version of the application
- I have provided all the information needed to reproduce this bug as efficiently as possible
- I have sponsored this project
- I have not read any of the above and just checked all the boxes to submit the issue
You might also need to allow ffmpeg
and all dylib
files. I don't use macOS, but this is what I heard.
Allowing files does not stop the process from being killed.
It runs fine if you clone the project and build it locally. I guess there is something wrong with the packaging
Running it via dotnet run
would work because dotnet
is signed
I don't work in terminal space - how do I use dotnet? It worked beautifully on Windows, but I really intended to use it with MacOS arm.
You can download .NET runtime (or SDK) here: https://dotnet.microsoft.com/en-us/download
Then use the terminal, switch to the directory with the app, and run dotnet YoutubeDownloader.dll
. The .NET CLI will act as a signed proxy and you should be able to run the app. You may have issues with the packaged ffmpeg
executable, but you can work around that by deleting it and installing ffmpeg
using your package manager instead.
In first you need to install dotnet from brew with this command : brew install dotnet
,
next you should use this command to authorize any application to run on your mac: sudo spctl --master-disable
.
And now you can use the @Tyrrrz command : dotnet YoutubeDownloader.dll
@Raphael0010 with sudo spctl --master-disable
can you run the application directly with ./YoutubeDownloader
?
When I run : ./YoutubeDownloader
I have : [1] 10295 killed ./YoutubeDownloader
Okay that's unfortunate