On November 6, 2026, Nintendo's DMCA notices took down Switch emulator and mod chip firmware repositories on GitHub, one of them across a whole network of 144 repositories at once. For an iOS app the lesson is about dependencies: Package.resolved pins a commit but not the code, so a vanished repository breaks the next clean build. Check every pin on a schedule, keep a private mirror, know how to point a build at it, and vendor the small packages you could not replace.
On November 6, 2026, Nintendo sent GitHub four DMCA notices. Three named Switch emulator repositories (two copies of Yuzu and Citron Neo's emulator). The fourth named mod chip firmware such as Picofly, SX Core, SX Lite and HWFLY. Some news summaries split them two and two; the notice files themselves show three emulator notices and one firmware notice. The firmware notice took down 144 repositories in a single pass, and a Citron notice took down a network of 71. The story reached the Hacker News front page on November 13, and most of the comments were about emulation law.
This post is about a smaller question that matters to anyone shipping an iOS app: what happens to your build when a repository you depend on disappears overnight? You don't need to be anywhere near an emulator for this to hit you. A package can vanish because of a DMCA notice, a deleted account, a renamed organization, a maintainer who walks away, or a mistake. The Nintendo notices just show, in public, how fast and how wide a removal can be.
You will find what the notices actually said, how GitHub's process works (including the part where a whole fork network goes down at once), a script that checks every SwiftPM pin in your project, a way to keep your own mirror, and what to do if a notice lands on your own repo. At the end there is a short section on the App Store side, because emulator apps are allowed on the App Store now and the rules around them are easy to misread.
What Nintendo's notices said
GitHub publishes every DMCA notice it acts on in its public github/dmca repository. The four Nintendo notices dated November 6 are there as 2026-11-06-nintendo.md through 2026-11-06-nintendo-4.md.
All four use the same basic claim. Nintendo says the Switch console and its games contain technological protection measures (TPMs) that let the console run only legitimate game files, and that this protects its copyrighted games, naming registrations for Mario Kart 8 Deluxe, Animal Crossing: New Horizons, Super Smash Bros. Ultimate and a Zelda title. That makes these anti-circumvention claims, which GitHub handles differently from a plain "you copied my code" claim.
The emulator notices say Switch emulators "illegally circumvent" those TPMs to run copies of games, pointing at the encryption keys (prod.keys) that protect game files. The firmware notice says the listed repositories "offer, link to, or otherwise provide access to" mod chip firmware that bypasses the console's boot checks.
Two notes GitHub added at the top of the notices are the part worth reading closely:
- On the firmware notice: because the reported network was larger than 100 repositories, and the submitter said all or most forks were infringing to the same extent as the parent, GitHub processed the notice against the entire network of 144 repositories.
- On the Citron notice: because the parent repository was actively being forked when the notice arrived, and the submitter had named all known forks at that time, GitHub processed it against the entire network of 71 repositories.
Slashdot's summary, citing TorrentFreak, adds that the firmware is still available elsewhere on GitHub. That is common after takedowns. It also means the copy you happen to find next week may not be the copy your project was pinned to.
How a GitHub takedown actually works
GitHub's DMCA Takedown Policy lays out the steps. The short version, in the order they happen:
- The rights holder sends a notice under penalty of perjury. GitHub publishes a redacted copy in github/dmca and sends the affected user a link.
- If the notice covers a whole repository or package, GitHub disables it directly. If it covers only some files, GitHub gives the user approximately 1 business day to remove or change them and tell GitHub.
- If the user misses that window and then says they wanted to make changes, GitHub re-enables the repository once for another short window.
- A user who thinks the removal is a mistake can file a counter notice. GitHub forwards it to the rights holder.
- If GitHub does not receive a copy of a lawsuit seeking a court order within 10 to 14 days of the counter notice, it re-enables the content. The policy says days, not business days.
Forks have their own rule. GitHub does not disable forks automatically when it disables a parent. The rights holder must name them. But if they name all existing forks at the time, or if the network has more than 100 repositories and they swear the forks they checked are infringing the same way, GitHub can take down the whole network. That is how one notice removed 144 repositories.
Anti-circumvention claims get extra review. GitHub says it checks them with technical and legal experts, leaves content up when it cannot tell whether a claim is valid, contacts the owner before disabling, and offers a way to export issues, pull requests and other data that don't contain the alleged circumvention code. It also offers a referral to free independent legal advice through its Developer Defense Fund.
If you only depend on a repository, none of these steps include you. GitHub contacts the owner, and the first sign you see is a failed fetch.
Why an iOS build breaks when a dependency vanishes
Swift Package Manager records each dependency in Package.resolved with its URL and the exact commit it resolved to. That file pins the version, but it does not store the code. When a clean machine runs a build (a new CI runner, a teammate's laptop, Xcode after you clear DerivedData), SwiftPM goes back to that URL to fetch the commit. If the URL now returns a takedown page or a 404, the fetch fails and so does the build.
Your own Mac often keeps working for a while because Xcode has a local copy cached, so everything looks fine until the day CI starts on a fresh image, or you hand the project to someone else, or an App Store resubmission has to be built on a new machine. That is usually a day when you are already in a hurry.
CocoaPods and Carthage have the same weakness when they point at a git URL. A Podfile.lock pins the version, and the spec points at a source repository. If that repository is gone, a fresh pod install cannot get it.
AI-built apps are a little more exposed here. Coding agents are good at adding packages and less careful about where those packages come from. It is common to open a project built with Cursor, Claude Code or Bolt and find a dependency from a single-maintainer repository with a handful of stars, added because it solved one problem in one prompt. Most of those are fine. A few are the kind of repository that gets deleted. A Ruby Gem Worm Writes CLAUDE.md and AGENTS.md Into Your Repos shows the other way a dependency can hurt you.
Step 1: List what you actually depend on
Find your Package.resolved. For a Swift package it sits next to Package.swift. For an Xcode project it is inside the project bundle:
find . -name Package.resolved -not -path "*/DerivedData/*"
# usually: YourApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
# or: YourApp.xcworkspace/xcshareddata/swiftpm/Package.resolved
Open it and read the location of every pin. Ask three questions for each one:
- Who owns it? A company or foundation repository is less likely to disappear than a personal account.
- Does it carry content that someone else could claim, such as bundled fonts, game assets, decryption code, scraped data or vendored copies of other people's libraries?
- Would your app still build and pass review if it vanished tomorrow and you had to replace it?
Check that the file is committed. A surprising number of AI-built projects have Package.resolved in .gitignore, which means every machine resolves its own versions and you cannot even say which commit you shipped.
Step 2: Check every pin with a script
The script below reads Package.resolved (format versions 1, 2 and 3), runs git ls-remote against each URL to see whether the remote still answers, and, if you give it a mirror folder, checks that the mirror holds the exact pinned commit. It exits with status 1 if anything is gone or missing, so it can fail a CI job.
#!/usr/bin/env python3
"""Check every SwiftPM pin in Package.resolved: is the remote still there,
and does a local mirror hold the pinned revision?"""
import json, os, subprocess, sys, pathlib
def pins(path):
data = json.loads(pathlib.Path(path).read_text())
if "pins" in data: # format version 2 and 3
for p in data["pins"]:
yield p.get("identity"), p["location"], p.get("state", {})
else: # format version 1
for p in data["object"]["pins"]:
yield p.get("package"), p["repositoryURL"], p.get("state", {})
def git(*args):
return subprocess.run(["git", *args], capture_output=True, text=True,
timeout=60, env={**os.environ, "GIT_TERMINAL_PROMPT": "0"})
def main(resolved, mirror_root=None):
bad = 0
for name, url, state in pins(resolved):
rev = state.get("revision", "")
remote = git("ls-remote", url, "HEAD")
alive = remote.returncode == 0
line = f"{name:28} {'OK ' if alive else 'GONE'} {url}"
if mirror_root:
mirror = pathlib.Path(mirror_root) / f"{name}.git"
has = mirror.exists() and git("--git-dir", str(mirror), "cat-file", "-e", f"{rev}^{{commit}}").returncode == 0
line += f" mirror:{'has ' + rev[:8] if has else 'MISSING'}"
bad += 0 if has else 1
if not alive:
bad += 1
print(line)
sys.exit(1 if bad else 0)
if __name__ == "__main__":
if len(sys.argv) < 2:
sys.exit("usage: dep_survival.py Package.resolved [mirror_dir]")
main(sys.argv[1], sys.argv[2] if len(sys.argv) > 2 else None)
Save it as dep_survival.py and run it:
python3 dep_survival.py YourApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
GIT_TERMINAL_PROMPT=0 stops git from hanging on a password prompt. GitHub asks for credentials when a public repository has been deleted or made private, so without it a vanished package can freeze the script instead of failing. Private dependencies that need your SSH key or a token will still work if git is already set up to reach them.
This script was tested on Linux with git 2.43 against local test repositories: it reported OK for live remotes, GONE after a remote was removed, and exited 1. It was later run on a Mac against a real Xcode project's Package.resolved, as described below, and that run led to one change.
Step 3: Keep your own mirror
A mirror is a full bare copy of each repository, every branch and tag included, stored somewhere you control: a folder on a build Mac, a private organization on GitHub or GitLab, or a small git server. The shell script below creates one mirror per pin and refreshes the ones you already have. When a remote fails, it keeps the old copy instead of deleting it.
#!/bin/bash
# Make or refresh a bare mirror of every SwiftPM dependency.
# usage: mirror_deps.sh path/to/Package.resolved ~/dep-mirrors
set -euo pipefail
resolved="$1"; root="$2"; mkdir -p "$root"
python3 - "$resolved" <<'PY' | while read -r name url; do
import json, sys
d = json.load(open(sys.argv[1]))
for p in d.get("pins") or d["object"]["pins"]:
print(p.get("identity") or p.get("package"), p.get("location") or p.get("repositoryURL"))
PY
dest="$root/$name.git"
if [ -d "$dest" ]; then
git --git-dir="$dest" remote update --prune >/dev/null 2>&1 \
&& echo "updated $name" || echo "KEPT OLD COPY $name (remote failed)"
else
git clone --mirror --quiet "$url" "$dest" && echo "mirrored $name" || echo "FAILED $name"
fi
done
One caution about --prune: it removes branches and tags that were deleted upstream. If a maintainer deletes the tag you pinned, the refresh drops that tag from your mirror too. The commit itself usually stays until git garbage-collects it, but if you want to be safe, keep a tag of your own on every pinned commit:
git --git-dir="$HOME/dep-mirrors/alpha.git" tag pinned-$(date +%Y%m%d) <revision>
Run the mirror script on a schedule (a weekly CI job is enough for most apps) and run dep_survival.py with the mirror folder as the second argument. In the local test, after one upstream repository was removed, the checker reported it GONE but showed that the mirror still had the pinned commit, and the mirror script printed "KEPT OLD COPY" for it.
Be careful about what you mirror and where. Mirroring a dependency for your own builds is normal. Re-publishing a copy of a repository that was taken down, in a public place, can make you the next name on a notice. Keep mirrors private, and if a dependency was removed for a legal reason, treat the mirror as a bridge while you replace it, not as a new home for it.
Step 4: Point your build at the mirror when you need it
There are two ways to make a build use your mirror without editing every reference by hand.
For SwiftPM on the command line, the package manager has a built-in mirror setting. The swift package config set-mirror command takes --original and --mirror, and writes the mapping to .swiftpm/configuration/mirrors.json in the package (or to your user configuration with --global):
swift package config set-mirror \
--original https://github.com/someone/vanished-lib.git \
--mirror https://git.example.com/mirrors/vanished-lib.git
swift package config get-mirror --original https://github.com/someone/vanished-lib.git
swift package config unset-mirror --original https://github.com/someone/vanished-lib.git
These option names come from the current SwiftPM source in the swiftlang/swift-package-manager repository. Older toolchains used --original-url and --mirror-url, so check swift package config set-mirror --help on your Mac.
The second way works at the git level. Git can rewrite one URL to another with url.<base>.insteadOf:
git config --global \
url."https://git.example.com/mirrors/vanished-lib.git".insteadOf \
"https://github.com/someone/vanished-lib.git"
After that, any git clone or fetch of the original URL goes to the mirror. In the local test, the original repository was deleted, the rule was added, and a clone of the original URL came back from the mirror with the right commit. This only helps when the tool doing the fetch uses your system git. Xcode has its own source control handling by default; xcodebuild has a -scmProvider system option that tells it to use the git installed on the machine, which CI providers such as CircleCI document for exactly this kind of git configuration. That combination was not tested on a Mac for this post, so check it on a CI run before you rely on it.
Often the better fix is to change the dependency URL in Xcode to your mirror or to a maintained fork (in the project's Package Dependencies tab, remove the package and add it again from the new URL), resolve again, and commit the new Package.resolved. A changed URL stays visible in the project, while a mirror rule lives on one machine and is easy to forget.
Running the scripts and the mirror on a Mac
The scripts were run on a Mac against the Package.resolved of a sample iOS app with one remote package, Apple's swift-algorithms 1.2.0, which pulls in swift-numerics 1.1.1. Xcode 26.2 wrote that file in format version 3, which the checker reads. mirror_deps.sh printed "mirrored swift-algorithms" and "mirrored swift-numerics", and the checker then printed OK for both remotes, "mirror:has f6919dfc" and "mirror:has 0c0290ff", and exited 0.
Then a third pin was added by hand, pointing at a GitHub repository that does not exist. The first version of the checker did not report it. It waited the full 60 seconds on that pin and then crashed with a TimeoutExpired traceback. The cause was the environment it gave git: only PATH and GIT_TERMINAL_PROMPT, with no HOME. The git that comes with Xcode has credential.helper=osxkeychain in its own system config, and that helper got stuck without a home folder. The same request with the credential helper turned off failed in one second with "terminal prompts disabled", which is the behavior the script expects.
The checker above now passes git the normal environment plus GIT_TERMINAL_PROMPT=0. With that change it printed "GONE" and "mirror:MISSING" for the missing repository after 3 seconds and exited 1. The old environment had a second, quieter effect: git ignored your ~/.gitconfig, so URL rewrites and credential helpers you keep there, which private packages often need, were skipped. A rewrite rule in a temporary home folder confirmed it. The old script ignored the rule, and the new one followed it.
The mirror itself was tested with xcodebuild -resolvePackageDependencies from Xcode 26.2, with empty package caches and a throwaway git config passed through GIT_CONFIG_GLOBAL. It sends all of GitHub to a closed local port and the two packages to the local mirrors:
[url "https://127.0.0.1:9/"]
insteadOf = https://github.com/
[url "file:///Users/you/dep-mirrors/swift-algorithms.git"]
insteadOf = https://github.com/apple/swift-algorithms
[url "file:///Users/you/dep-mirrors/swift-numerics.git"]
insteadOf = https://github.com/apple/swift-numerics.git
Resolution succeeded in 6 seconds, and the swift-algorithms checkout sat at the pinned commit, f6919dfc. No -scmProvider flag was needed. One detail can fool you: the log still said "Fetching from https://github.com/apple/swift-algorithms", because the rewrite happens inside git. Check the checked-out commit, not the log, to know where the code came from. For the SwiftPM route, swift package config set-mirror --help in Swift 6.2.3 lists --original and --mirror, each taking "url or identity", which matches the names above.
Step 5: Decide what to vendor
Vendoring means copying a dependency's source into your own repository. It removes the network from the build entirely, which is why some teams do it for everything. It also means you own every update and every security fix, and you carry the dependency's license obligations in your repo.
A practical middle path for a small app:
- Keep large, well-funded dependencies (Firebase, Alamofire, swift-collections and similar) as normal packages, with a mirror for insurance.
- Vendor small single-maintainer packages that you rely on and that rarely change, especially if they are a few files you could read in an hour.
- Replace anything that carries content you could not defend, such as copied assets, scraped data or code that defeats someone else's protection. Those are the packages most likely to get a notice, and they are also the ones that cause App Store trouble.
Whatever you vendor, keep its license file next to it and note the original URL and commit in a short README in that folder. If the upstream comes back later, you will want to know exactly what you copied.
Step 6: Make CI fail early, not on release day
Add the checker to a scheduled job so a vanished dependency shows up as a red build on a quiet Tuesday instead of a broken release build. A GitHub Actions job on a Linux runner is enough, because the checker only needs Python and git:
name: dependency-survival
on:
schedule:
- cron: "0 3 * * 1"
workflow_dispatch:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: python3 scripts/dep_survival.py YourApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
If you host your own mirror, the same job can run mirror_deps.sh first and then run the checker with the mirror folder. Pin the checkout action to a commit SHA if your team already does that for other workflows.
If you would rather not depend on GitHub for the check itself, run it from a cron job on your build Mac. What matters is that the pins get checked on a schedule, before anyone needs a clean build.
If a notice lands on your own repository
Most app developers will never get a DMCA notice. If you do, the timing matters more than anything else, because the window to fix things is short.
- Read the notice in github/dmca and the email GitHub sends. Work out whether it names specific files or the whole repository. If it names files, you have about 1 business day to remove or change them and tell GitHub.
- Remove the named content and tell GitHub what you changed within that window. Deleting a file in a new commit may not be enough if the content is still in history; GitHub's policy page explains how to handle that, and it is worth reading before you rewrite anything.
- If the repository was disabled and you missed the window, reply anyway. GitHub re-enables once for another short window if you say you want to make changes.
- If you believe the notice is wrong, read GitHub's guide to counter notices before you file one, and get legal advice. A counter notice is a legal statement, and the rights holder then has 10 to 14 days to sue or the content comes back.
- For anti-circumvention claims, GitHub offers a way to export issues and pull requests that don't contain the disputed code, and a referral to free legal advice through its Developer Defense Fund. Use both.
This is general information about GitHub's published process, not legal advice. If a notice names your app's code, talk to a lawyer before you file anything.
One more practical point: keep a second remote for your own app's repository too. A private copy on another host costs nothing and means an account problem, a mistaken notice or a lost password does not stop you from building and submitting.
The App Store side: emulators are allowed, with conditions
Apple's App Review Guidelines changed in 2024 to allow retro game console emulators, and the current text of Guideline 4.7 says retro game console and PC emulator apps can offer to download games. The same guideline says you are responsible for all software offered in your app, including making sure it follows the guidelines and all applicable laws. Subsections 4.7.1 to 4.7.5 add rules on privacy, content filtering and reporting, in-app purchase, native API access, an index of the software you offer, and age restrictions. Claude Code Won't Clone Games Anymore: What Still Gets Your Game Rejected by Apple covers the copycat rules for games.
Guideline 5.2.1 still applies on top of that: don't use protected third-party material such as trademarks or copyrighted works without permission, and don't use copycat names or metadata. An emulator app that ships with game files, links to sites that host them, uses a console maker's logo in its icon, or describes itself with a game's name is asking for both a rejection and a complaint. Apple's IP dispute process lets rights holders file a claim through its web form, which is a separate track from App Review.
Nintendo's notices argue that Switch emulators circumvent protection by design. That is Nintendo's claim, and courts have not settled every version of it, but you don't need a court ruling to see the practical risk. If your app's core feature depends on code that a large rights holder is actively removing from GitHub, both your source and your App Store listing are exposed. That applies to more than emulators: video downloaders under Guideline 5.2.3, apps that unlock paid features of other services, and apps that scrape content without permission all sit in the same spot.
A checklist to run this week
- Commit
Package.resolvedand any Podfile.lock if they are not in git. - Run
dep_survival.pyonce and read the list of owners. - Mirror every dependency into a private location with
mirror_deps.sh, and tag the pinned commits. - Note which packages are single-maintainer and decide which to vendor.
- Replace any dependency that carries content you could not defend.
- Add a weekly CI job that runs the checker.
- Add a second private remote for your own app's repository.
- If you build an emulator or any app that touches other people's content, reread Guidelines 4.7 and 5.2 before your next submission.
FAQ
Did Nintendo's notices affect normal iOS packages?
The notices named Switch emulator and mod chip firmware repositories and their forks. Nothing in them points at general iOS libraries. The lesson for app developers is about how removals work, not about these particular repositories.
Does Package.resolved protect me if a repository is deleted?
No. It records the URL and the commit, so it tells SwiftPM what to fetch, but the code still comes from the remote. A local cache can hide the problem until a clean build.
Is it legal to keep a private mirror of an open-source dependency?
For code under an open-source license, keeping a copy for your own builds is what those licenses allow, as long as you follow their terms. Code that was removed because the rights holder says it infringes is different. Treat a mirror of that as temporary while you replace it, and ask a lawyer if you are unsure.
How long does GitHub wait after a counter notice?
GitHub's policy says it re-enables the content if it does not receive a copy of a lawsuit within 10 to 14 days after processing a valid counter notice.
Will a mirror rule work inside Xcode?
SwiftPM's set-mirror setting applies to SwiftPM commands. A git insteadOf rule applies when the fetch goes through your system git, which xcodebuild -scmProvider system is meant to do. Neither was tested in the Xcode app itself, but the git rule was later tested with xcodebuild, as described above. Changing the package URL in the project is the method you can count on.
If you want help keeping AI-written iOS code in line with release rules, Claude Code + Xcode: The Production iOS Workflow Kit is an $18 set of AGENTS.md and CLAUDE.md templates, rules (release safety among them), commands, iOS agents, runbooks and a sample project for using Claude Code on iOS work. It does not include the mirror scripts above and it cannot guarantee App Store approval.
Keep reading on JR Devhub
- OpenAI Is Buying Pierre: What to Do If You Use Diffs, Trees or Code Storage
- Dependabot Can Now Update Your Agent Skills. Set Up APM on an iOS Repo Before You Let It
- Fix "Missing Package Product" Errors in Xcode: 8 Solutions, Cheapest First
- OpenAI and Anthropic Both Outgrew Git. What Should Your Team Change?
Sources
- GitHub DMCA repository: Nintendo notice 2026-11-06 (mod chip firmware, 144 repositories)
- GitHub DMCA repository: Nintendo notice 2026-11-06 (Citron, 71 repositories)
- GitHub DMCA repository: Nintendo notice 2026-11-06 (Yuzu Android copy)
- Slashdot: Nintendo Takes Down Switch Emulators, Mod Chip Firmware in Massive GitHub DMCA Sweep
- GitHub Docs: DMCA Takedown Policy
- Apple: App Review Guidelines (4.7, 5.2.1, 5.2.3)
- swift-package-manager: Config.swift (set-mirror options)
- CircleCI Support: Swift Package Manager fails to clone from private Git repositories (-scmProvider system)
- Hacker News discussion

Comments