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

Process killed immediately when running on macOS #455

Open
4 of 6 tasks
isidjjchdhdhdh opened this issue Jun 8, 2024 · 11 comments
Open
4 of 6 tasks

Process killed immediately when running on macOS #455

isidjjchdhdhdh opened this issue Jun 8, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@isidjjchdhdhdh
Copy link

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
@isidjjchdhdhdh isidjjchdhdhdh added the bug Something isn't working label Jun 8, 2024
@Tyrrrz
Copy link
Owner

Tyrrrz commented Jun 9, 2024

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

@Tyrrrz Tyrrrz changed the title [macOS] process killed immediately when running Process killed immediately when running on macOS Jun 9, 2024
@fenhelix
Copy link

Allowing files does not stop the process from being killed.

@TheLazyHatGuy
Copy link
Contributor

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

@Tyrrrz
Copy link
Owner

Tyrrrz commented Jun 25, 2024

Running it via dotnet run would work because dotnet is signed

@githal2022
Copy link

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
Copy link
Owner

Tyrrrz commented Jul 3, 2024

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
Copy link

@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
Copy link
Owner

Tyrrrz commented Jul 25, 2024

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

@Raphael0010
Copy link

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

@Tyrrrz
Copy link
Owner

Tyrrrz commented Jul 29, 2024

Okay that's unfortunate

@Tyrrrz
Copy link
Owner

Tyrrrz commented Nov 6, 2024

The solution to this issue is probably an app bundle, similar to Tyrrrz/DiscordChatExporter#1249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants