The same can be accomplished from the command line using two commands, hdiutil and cp. The following steps show the installation of a popular VNC client for OS X called 'Chicken of the VNC'. It can be used as a remote desktop client for Linux, Mac, or Windows hosts.
Technical Note TN2339
This document provides answers to frequently asked questions about command line tools.
What is the Command Line Tools Package?
The Command Line Tools Package is a small self-contained package available for download separately from Xcode and that allows you to do command line development in macOS. It consists of the macOS SDK and command-line tools such as Clang, which are installed in the
/Library/Developer/CommandLineTools directory.
Downloading command-line tools is not available in Xcode for macOS 10.9. How can I install them on my machine?
In macOS 10.9 and later, the Downloads pane of Xcode Preferences does not support downloading command-line tools. Use any of the following methods to install command-line tools on your system:
![]()
Note: In macOS 10.9 and later, Software update notifies you when new versions of the command-line tools are available for update.
How can I uninstall the command-line tools?
I have multiple versions of Xcode installed on my machine. What version of Xcode do the command-line tools currently use?
To find out what version of Xcode is being used by your tools, run the following command in Terminal:
Listing 2 Printing the version of Xcode currently used by the command-line tools.
![]() How do I select the default version of Xcode to use for my command-line tools?
https://learningclever718.weebly.com/download-hadoop-mac-os-x.html. To select a default Xcode for your command-line tools, run the following command in Terminal:
where <path/to/> is the path to the Xcode.app package you wish to use for development.
Listing 3 Setting the default Xcode version.
How do I build my projects from the command line?
xcodebuild is a command-line tool that allows you to perform build, query, analyze, test, and archive operations on your Xcode projects and workspaces from the command line. It operates on one or more targets contained in your project, or a scheme contained in your project or workspace. xcodebuild provides several options for performing these operations as seen its man page. xcodebuild saves the output of your commands in the locations defined in the Locations preferences pane of your Xcode application, by default.
See below for various xcodebuild usage. Be sure to navigate to the directory containing your project or workspace in Terminal before running any of the following commands.
My app has multiple build configurations. How do I set a default build configuration for xcodebuild?
In Xcode, the Configurations section of your project's Info pane provides a pop-up menu, which sets the default configuration to be used by xcodebuild when building a target. Use this pop-up menu to select a default build configuration for xcodebuild as seen in Figure 2.
How do I run unit tests from the command line?
xcodebuild provides several options for running unit tests.
To build and run unit tests from the command line, execute the following command in Terminal:
To build unit tests without running them from the command line, execute the following command in Terminal:
To run unit tests without building them from the command line, execute any of the following command in Terminal:
The test action requires specifying a scheme and a destination. See How do I implement the Build For Testing and Test Without Building features from the command line? for more information about build-for-testing and test-without-building actions.
The
-workspace option allows you to specify the name of your workspace. Use this option when your scheme is contained in an Xcode workspace.
The
-project option allows you to specify the name of your Xcode project. Use this option when your scheme is contained in an Xcode project. It is required when there are multiple Xcode projects in the same directory and optional, otherwise.
The
-destination option allows you to specify a destination for your unit tests. It takes an argument <destination-specifier> , which describes the device, simulator, or Mac to use as a destination. It consists of a set of comma-separated key=value pairs, which are dependent upon the the device, simulator, or Mac being used.
The
-only-testing and -skip-testing options, which are optional, allow you to run only a specific test and to skip a test, respectively. They take an argument <test-identifier> , which specifies the test to be executed or excluded. test-identifier 's format is as follows:
Mac How To Run App From Command Line CommandTestTarget , which is required, is the name of the test bundle. TestClass and TestMethod , which are both optional, respectively represent the name of the class and the name of the method to be tested.
Note: See Xcode Scheme and Run your app in Simulator for more information about scheme and destination, respectively.
The
-destination option also allows you to run the same unit test on multiple destinations. This is done by adding it multiple times to your xcodebuild test command as demonstrated in Listing 17.
Listing 17 Tests the iOS scheme in both the Simulator and on an iPod touch.
Note: xcodebuild runs your tests sequentially. For instance In Listing 17, xcodebuild will first test iOS in the Simulator before executing it on the iPod touch.
How do I implement the Build For Testing and Test Without Building features from the command line?
Note:
build-for-testing and test-without-building provide support for continuous integration systems.
What keys can I pass to the exportOptionsPlist flag?
To get all available keys for
-exportOptionsPlist , run the following command in Terminal:
Mac Command Line Tutorial
Listing 22 Fetching all keys supported by -exportOptionsPlist.
See Figure 3 for a sample file that contains some options for the -exportOptionsPlist flag.
How do I archive and export my app for distribution?
To archive and export your app for distribution, run the following command in Terminal:
where
<xcarchivepath> specifies the archive or the path of the archive to be exported, <destinationpath> specifies where to save the exported product, and <path> is the path to the file with a list of options for the -exportOptionsPlist flag.
Listing 23 Exports the iOSApp archive to the Release location with the options saved in the OptionsPlist.plist.
Document Revision History
Copyright © 2017 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2017-06-19
With this blog post, I am going to share with you how to run a Spring Boot app from a command line in a Terminal window. There are a couple of ways and both assume that you have already created your Spring Boot app. To learn how to create a new Spring Boot app please check the below blog post of mine.
Add Maven Plugin to POM.XML
For us to be able to run Spring Boot application as a single executable Java jar file we first need to update the pom.xml file of our project and add to it a maven plugin.
Open the pom.xml file and add the following XML snippet below the list of project dependencies. Sonos app on mac cannot find existing sonos networking.
Build Spring Boot Project with Maven
To be able to run your Spring Boot app you will need to first build it. To build and package a Spring Boot app into a single executable Jar file with a Maven, use the below command. You will need to run it from the project folder which contains the pom.xml file.
or you can also use
Run Spring Boot app with java -jar commandHow To Run Java Program From Command Line Mac
To run your Spring Boot app from a command line in a Terminal window you can you the java -jar command. This is provided your Spring Boot app was packaged as an executable jar file.
Run Spring Boot app using Maven
You can also use Maven plugin to run your Spring Boot app. Use the below example to run your Spring Boot app with Maven plugin:
Run Spring Boot App with Gradle
And if you use Gradle you can run the Spring Boot app with the following command:
Automatic Restart and Hot Swapping
Applications that use spring-boot-devtools dependency automatically restart whenever files on the classpath change. Although for this to work you will need to run your Spring Boot App using IDE.
Run Spring Boot Web Service as a Standalone App. Video Tutorial.Related Posts:
Powered by Contextual Related Posts
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |