xc

0.0.2

Open your xcode project with Xcode of specific version
s2mr/xc

What's New

2023-01-11T13:01:09Z

xc (EXPERIMENTAL)

Open your xcode project with Xcode of specific version.

Examples

$ xc -v 14.2.0 # Open project file with Xcode 14.2.0
$ xc list
Available Xcode:
14.2    /Applications/Xcode.app         <Selected>
14.1    /Applications/Xcode14.1.app
13.4.1  /Applications/Xcode13.4.1.app
13.2.1  /Applications/Xcode13.2.1.app

Installation

Swift Package Manager

Add the following to the dependencies of your Package.swift:

dependencies: [
    .package(url: "https://github.com/s2mr/xc.git", from: "xc version"),
]

Run command:

swift run -c release xc [COMMAND] [OPTIONS]

Mint

Install with Mint by following command:

mint install s2mr/xc

Run command:

mint run s2mr/xc [COMMAND] [OPTIONS]

Using a pre-built binary

You can also install xc by downloading xc.zip from the latest GitHub release.

Setup

This command's automatically changing xcode-select path feature needs sudo password.

Please set password via below command.

$ xc config write --sudo-password `<Your password here>`

Or, you can disable this feature via below command.

$ xc config write --auto-xcode-select-enabled false

Feature

Automatic project file searching (priority)

  1. User specified path
  2. .xcworkspace
  3. .xcodeproj
  4. Package.swift

Automatic Xcode version searching (priority)

  1. User specified version
  2. .xcode-version
  3. $ xcode-select

Help

$ xc --help
USAGE: xc <subcommand>

OPTIONS:
  --version               Show the version.
  -h, --help              Show help information.

SUBCOMMANDS:
  list                    Available Xcodes list
  open (default)          Shows available versions of Xcode
  config                  Read and write xc command config. Config json is stored at `~/.config/xc/config.json`
$ xc open --help
OVERVIEW: Shows available versions of Xcode

USAGE: xc open [-v <v>] [<path>]

ARGUMENTS:
  <path>                  File path

OPTIONS:
  -v <v>                  Open with specific Xcode version
  --version               Show the version.
  -h, --help              Show help information.

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

Last updated: Mon Jan 23 2023 20:58:55 GMT-0500 (GMT-05:00)