[GH-ISSUE #76] ISSUE: Xcode project not building #55

Closed
opened 2026-03-04 00:03:27 +03:00 by kerem · 5 comments
Owner

Originally created by @lGugusl on GitHub (Aug 1, 2025).
Original GitHub issue: https://github.com/YouG-o/YouTube-No-Translation/issues/76

Originally assigned to: @YouG-o on GitHub.

Hello!

I should preface saying that I am a newbie developper, but following the Mac OS build steps Xcode fails to build because of json references not found.
It fails at the steps for copying tsconfig.popup.json, tsconfig.content.json, and tsconfig.background.json

From what I gather, these have been removed in favour of the now unique tsconfig.json, so I am wondering if the Xcode project is up to date.

Environment:
MacOS 15.5
Xcode 16.4
Node.js 22.18
npm 10.9.3

Thank you for all the work done with this project!

Originally created by @lGugusl on GitHub (Aug 1, 2025). Original GitHub issue: https://github.com/YouG-o/YouTube-No-Translation/issues/76 Originally assigned to: @YouG-o on GitHub. Hello! I should preface saying that I am a newbie developper, but following the Mac OS build steps Xcode fails to build because of json references not found. It fails at the steps for copying tsconfig.popup.json, tsconfig.content.json, and tsconfig.background.json From what I gather, these have been removed in favour of the now unique tsconfig.json, so I am wondering if the Xcode project is up to date. Environment: MacOS 15.5 Xcode 16.4 Node.js 22.18 npm 10.9.3 Thank you for all the work done with this project!
kerem 2026-03-04 00:03:27 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@YouG-o commented on GitHub (Aug 1, 2025):

Hi,
Yep, you got it. Those files are from an earlier version. We now use a single tsconfig file.
Unfortunately, I'm not the one who did the Safari port, so I don't really know what to update to make it work. I can't even test it since I don't have any macOS system.

@Seva41 I would really appreciate if you could have a look at this.

<!-- gh-comment-id:3145928710 --> @YouG-o commented on GitHub (Aug 1, 2025): Hi, Yep, you got it. Those files are from an earlier version. We now use a single tsconfig file. Unfortunately, I'm not the one who did the Safari port, so I don't really know what to update to make it work. I can't even test it since I don't have any macOS system. @Seva41 I would really appreciate if you could have a look at this.
Author
Owner

@Seva41 commented on GitHub (Aug 1, 2025):

Hey! Just checked and you're right, the Xcode Project is outdated and i must update it. I will take a look and update it soon.

In the meantime, a workaround is possible:

  1. Pull the changes from the repository.
  2. Run sudo npm run prepare:safari .
  • Be sure to have the right privileges and execution permissions on safari-extension/safari_ext_data.sh. You should see the message Script completed successfully. after running the npm command.
  1. Open the Xcode project, and delete the tsconfig.popup.json, tsconfig.content.json, tsconfig.background.json, manifest.firefox.json and manifest.chrome.json references from the sidebar (Right click > Delete > Remove Reference).
  2. Clean the build (Cmd+Shift+K) and then build again by clicking the "Play" button. Youtube No Translation should be built and attached to Safari.
  3. In Safari, open Settings and go to the Developer tab. At the bottom, check "Allow unsigned extensions".
  4. Go to the Extensions tab. Enable Youtube No Translation. You're ready to go.
<!-- gh-comment-id:3146002640 --> @Seva41 commented on GitHub (Aug 1, 2025): Hey! Just checked and you're right, the Xcode Project is outdated and i must update it. I will take a look and update it soon. In the meantime, a workaround is possible: 1. Pull the changes from the repository. 2. Run `sudo npm run prepare:safari` . - Be sure to have the right privileges and execution permissions on `safari-extension/safari_ext_data.sh`. You should see the message `Script completed successfully.` after running the npm command. 3. Open the Xcode project, and delete the `tsconfig.popup.json`, `tsconfig.content.json`, `tsconfig.background.json`, `manifest.firefox.json` and `manifest.chrome.json` references from the sidebar (Right click > Delete > Remove Reference). 4. Clean the build (Cmd+Shift+K) and then build again by clicking the "Play" button. Youtube No Translation should be built and attached to Safari. 5. In Safari, open Settings and go to the Developer tab. At the bottom, check "Allow unsigned extensions". 6. Go to the Extensions tab. Enable Youtube No Translation. You're ready to go.
Author
Owner

@lGugusl commented on GitHub (Aug 2, 2025):

Thank you both!

<!-- gh-comment-id:3146420071 --> @lGugusl commented on GitHub (Aug 2, 2025): Thank you both!
Author
Owner

@IMNotMax commented on GitHub (Sep 23, 2025):

Helped me as the build was working but Safari wasn't able to see the extension.
Following steps 5 was the solution !

Great work !

<!-- gh-comment-id:3324864434 --> @IMNotMax commented on GitHub (Sep 23, 2025): Helped me as the build was working but Safari wasn't able to see the extension. Following steps 5 was the solution ! Great work !
Author
Owner

@YouG-o commented on GitHub (Sep 23, 2025):

@IMNotMax ooops
I will add this step to the readme, thanks for letting me know

<!-- gh-comment-id:3324893176 --> @YouG-o commented on GitHub (Sep 23, 2025): @IMNotMax ooops I will add this step to the readme, thanks for letting me know
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/YouTube-No-Translation#55
No description provided.