Tyrrrz / YoutubeDownloader

Downloads videos and playlists from YouTube
MIT License
8.34k stars 1.16k forks source link

Process killed immediately when running on macOS #455

Open isidjjchdhdhdh opened 3 months ago

isidjjchdhdhdh commented 3 months ago

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

Tyrrrz commented 3 months ago

You might also need to allow ffmpeg and all dylib files. I don't use macOS, but this is what I heard.

fenhelix commented 3 months ago

Allowing files does not stop the process from being killed.

TheLazyHatGuy commented 2 months ago

It runs fine if you clone the project and build it locally. I guess there is something wrong with the packaging

Tyrrrz commented 2 months ago

Running it via dotnet run would work because dotnet is signed

githal2022 commented 2 months ago

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.

Tyrrrz commented 2 months ago

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.

Raphael0010 commented 1 month ago

@githal2022

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

Tyrrrz commented 1 month ago

@Raphael0010 with sudo spctl --master-disable can you run the application directly with ./YoutubeDownloader?

Raphael0010 commented 1 month ago

When I run : ./YoutubeDownloader I have : [1] 10295 killed ./YoutubeDownloader

Tyrrrz commented 1 month ago

Okay that's unfortunate