Safari converter "Could not find a manifest" in CI
safari-web-extension-converter expects a directory whose root holds manifest.json. If you point it at a parent folder, a zip, or a build that nested the manifest, it cannot find the manifest and stops.
What this error means
The xcrun converter step fails reporting it could not find a manifest.json in the supplied extension directory.
xcrun safari-web-extension-converter dist
Error: Could not find a manifest.json file in the specified extension directory.Common causes
The path does not have manifest.json at its root
A parent directory or a build that placed manifest.json in a subfolder leaves the converter with no manifest at the path it was given.
A zip instead of an unpacked directory
The converter wants an unpacked extension directory, not a packaged zip.
How to fix it
Point the converter at the directory holding manifest.json
- Build the extension to an unpacked directory.
- Confirm manifest.json sits at the root of that directory.
- Pass that exact directory to the converter.
xcrun safari-web-extension-converter ./dist --project-location ./safariUnpack before converting
If you have a zip, extract it first and run the converter against the extracted directory.
unzip -o extension.zip -d dist
xcrun safari-web-extension-converter ./distHow to prevent it
- Build to an unpacked directory with manifest.json at the root.
- Convert the directory, not a zip.
- List the directory in CI to confirm the manifest is present.