Install Xcode Command Line Tools From Terminal



Use any of the following methods to install command-line tools on your system: Install Xcode. If Xcode is installed on your machine, then there is no need to install them. Xcode comes bundled with all your command-line tools. MacOS 10.9 and later includes shims or wrapper executables. Download the latest version of Xcode from the Apple developer website or get it using the Mac App Store. Once you have Xcode installed, open a terminal, run xcode-select -install, and click the Install button to install the required command line developer tools. ## Install DevToolsIf you have `pub` on your path, you can run:```pub global activate devtools```If you have `flutter` on your path, you can run:```flutter pub global activate devtools```That command installs (or updates) DevTools on your machine.## Launch the DevTools application serverNext, run the local web server, which serves the DevToolsapplication.

  1. Install Xcode Command Line Tools Terminal Mojave
  2. Install Xcode Command Line Tools Terminal Catalina
Contents

Install DevTools

If you have pub on your path, you can run:

If you have flutter on your path, you can run:

That command installs (or updates) DevTools on your machine.

Launch the DevTools application server

Install Xcode Command Line Tools Terminal Mojave

Next, run the local web server, which serves the DevToolsapplication itself. To do that, run one of the followingtwo commands:

OR

On the command line, you should see output that looks something like:

Start an application to debug

Next, start an app to connect to. This can be either a Flutter applicationor a Dart command-line application. The command below uses a Flutter app:

You need to have a device connected, or a simulator open, forflutter run to work. Once the app starts, you’ll see amessage in your terminal that looks like:

Command

Keep note this URL, as you will use it to connect your app toDevTools.

Open DevTools and connect to the target app

Once it’s set up, using DevTools is as simple as opening aChrome browser window and navigating to http://localhost:9100.

Once DevTools opens, you should see a connect dialog:

Paste the URL you got from running your app (in this example,http://127.0.0.1:50976/Swm0bjIe0ks=/) into the connect dialogto connect your app to DevTools.

Install Xcode Command Line Tools Terminal Catalina

This URL contains a security token, so it will be differentfor each run of your app. This means that if you stop yourapplication and re-run it, you need to connect to DevToolswith the new URL.





Comments are closed.