Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube-DL does not run inside sandboxed apps in macOS Catalina #23029
Comments
|
@dstftw What new information can I add so that this issue can be addressed? |
|
@Jake3231 did you ever sort this out? |
|
I have not yet solved this issue. I can try this again with the latest updates to YouTube-DL and macOS, though I doubt that will yield a different result. For now I think that I will be removing the Sandbox from my application, since it it not distributed in the Mac App Store. |
|
@owlboy I recently signed up for a WWDC20 lab with an Apple security engineer, who provided a solution to this issue. It turns out that you can resolve this issue by providing a read-only Sandbox exception for the directory
|
Youtube-DL no longer executes when included inside of a sandboxed application in macOS Catalina.
Verbose log
macOS 10.15.1 (19B88)
Xcode 11.2 (11B52)
Description
I am developing a macOS application that bundles YouTube-dl, and I've run into a problem when using macOS Catalina. When the App Sandbox is enabled in the app's Xcode project, running YouTube-dl fails with the above error. This behavior did not occur when using macOS 10.14 Mojave. I am aware of a number of security changes in macOS Catalina, though I am not sure what would be causing this.
I downloaded the latest release of Youtube-dl, then included the
youtube-dlexecutable file inside my Mac app bundle, with a.shextension. I am running the code below:In order to troubleshoot the issue, I tried to code sign the YouTube-dl executable manually. I also ensured that the
Process'currentDirectoryPathwas set to a location which was explicitly accessible according to my app's entitlements.