Can't test custom Safari Extensions

Hello!

So we would like to utilize the virtual MacOS here to test our Safari Browser Extensions since our QA does not have a physical macbook.

Here are our steps: –Start of instructions– Pre requisite:

  • You will need Xcode App installed on your MacOS to test/publish the extension.
  • Built/generated the extension code

Steps:

  1. Enable Developer mode in Safari
  2. Open Safari Settings
  3. Go to “Advanced” tab
  4. Turn on “Show features for web developers”
  5. Go to “Developer” tab
  6. Turn on “Allow unsigned extensions”
  7. Now, you can load the extension in Safari:

From the generated/extracted Xcode project, open the appname.xcodeproj file. It will open the project in Xcode. Run the project by clicking the play button in Xcode. It will open Safari with the extension loaded.

– End of instructions–

My attempt: I used the option Real Time → Desktop → Safari → v18

I successfully downloaded xcode in the lambdatest virtual machine using some hacky way by going to ‘apple developers/downloads/all’ but I wasn’t able to open the .xip file as the virtual machine did not have the tools available.

I tried uploading the generated extension folder but the virtual machine only accepts files. If I tried zipping it and uploading I assume it wouldn’t be opened in the Virtual Machine.

Big big thanks to anyone who could help me.