Xcode 12 Web Extension Converter Tool Not Found

I downloaded and installed the Xcode 12 Beta in hopes of trying out the Web Extension converter tool.

I ran:
Code Block
xcrun safari-web-extension-converter /path/to/my/extension


and got the following error:
Code Block
xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -find safari-web-extension-converter 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory)
xcrun: error: unable to find utility "safari-web-extension-converter", not a developer tool or in PATH


This seems to indicate I'm running the Xcode 11 version of xcrun (which I also have on my machine) which doesn't have the tool. The path to xcrun was /usr/bin/xcrun.

How do I run the 12 Beta version of xcrun so I can run the Converter tool? Or do I need to uninstall v11? I thought you could run both at the same time.

Thanks!
Chris
Answered by Frameworks Engineer in 614980022
The xcrun command uses whatever Xcode is selected. What does xcode-select -p show?

You can also use the command directly at: Xcode.app/Contents/Developer/usr/bin/safari-web-extension-converter

The tool requires Safari 14, so it will only work on macOS Big Sur right now.
Accepted Answer
The xcrun command uses whatever Xcode is selected. What does xcode-select -p show?

You can also use the command directly at: Xcode.app/Contents/Developer/usr/bin/safari-web-extension-converter

The tool requires Safari 14, so it will only work on macOS Big Sur right now.
Ah, that's my problem. I'm still on Catalina. Thanks for the clarification. Looks like I'll need to find a machine or drive to put Big Sur on.

Also thanks for the xcode-select tip.

Thanks!
Chris
Another option, in Xcode 12 Beta, is you can create a new Web Extension using the Safari Extension App project template, or the Safari Extension target template when making a new project or target. This does not require Safari 14 to create, but you would need Safari 14 to test the extension.

This is covered in Meet Safari Web Extensions.
Xcode 12 Web Extension Converter Tool Not Found
 
 
Q