This is a port of the vue-devtools extension available for Google Chrome and Mozilla Firefox browsers. This repository contains an Xcode project that ports the extension using an existing Chrome extension installation into a Swift-based Safari Extension.
To install Vue-devtools in Safari, follow these steps:
If not already installed, you need to install Xcode to run the project as well as build the Safari Extension.
There are multiple ways to download the latest version of Xcode:-
- via the Mac App Store.
- via tha Apple Developers website.
Make sure you have more than 40-45 GBs free on your disk to ensure smooth installation of the IDE.
- To enable Developer mode in Safari, Press ⌘, to open the Safari App Preferences.
- Navigate to the 'Advanced' Tab
- Check the 'Show Develop menu in menu bar'. You should now be able to see the 'Develop' tab appear after the 'Bookmarks' tab in the menu bar.
- Open the 'Develop' menu and click the 'Allow Unsigned Extensions' option in the menu.
- Close Safari to make sure the changes take effect.
- Open Terminal or your preferred Terminal emulator.
- Navigate to the directory you want to save this codebase in.
- Clone the repository using the command:
git clone https://github.com/arizsiddiqui/vue-devtools-for-safari
- This codebase should now be available on your local machine.
- In Finder navigate inside this repository until you find the 'Vue.js devtools.xcodeproj' file.
- Double click this file to open the entire project in Xcode.
- In Xcode, open the 'Product' menu in the menu bar and click 'Archive'. Xcode will start building the project to be bundled into an application.
- In the Archives window that then appears, choose 'Distribute App', and 'Copy App' in the distribution dialog box.
- Choose the destination folder for the bundled application.
- In Finder, navigate to the destination folder. Here you should find an application by the name of 'Vue.js devtools.app'.
- Run the app by double clicking on it.
- Click the button inside to open Safari Extensions.
- Check the box next to the devtools extension to enable it in Safari.