ProductPromotion
Logo

Swift

made by https://0x3d.site

GitHub - s2mr/xc: Open your xcode project with Xcode of specific version
Open your xcode project with Xcode of specific version  - GitHub - s2mr/xc: Open your xcode project with Xcode of specific version
Visit Site

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

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

xc

Open the Xcode project file with the specified version

Usage

Open project file with preferred Xcode version:

xc

Open project file with Xcode 14.2.0:

xc -v 14.2.0
xc list

---
Available Xcode:
14.2    /Applications/Xcode.app         <xcode-select>
14.1    /Applications/Xcode14.1.app
13.4.1  /Applications/Xcode13.4.1.app
13.2.1  /Applications/Xcode13.2.1.app

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

Show all Xcode list you installed

Automatically searching xcode via NSWorkspace.shared.urlsForApplications(withBundleIdentifier: "com.apple.dt.Xcode").

xc list

---
Available Xcode:
14.2    /Applications/Xcode.app         <xcode-select>
14.1    /Applications/Xcode14.1.app
13.4.1  /Applications/Xcode13.4.1.app
13.2.1  /Applications/Xcode13.2.1.app

Open Xcode.app without opening project

Simply run:

xc -n

Automatically changing developer directory via xcode-select

When you execute xc or xc open command, automatically execute sudo xcode-select --switch. This needs sudo password. You can setting sudo password via $ xc config

Warning

This feature is disabled by default.

You can enabled this feature by executing command below.

$ xc config write --sudo-password <sudo-password> --auto-xcode-select-enabled true

Command completion

This command is built on swift-argument-parser.

Please refer to this article.

Replace example with xc.

Installation

Homebrew

brew install s2mr/tap/xc

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.

Help

xc --help

---
OVERVIEW: This tool launches the Xcode application and opens the given documents.

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`
  env                     Current environment

  See 'xc help <subcommand>' for detailed help.
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.

More Resources
to explore the angular.

mail [email protected] to add your project or resources here ๐Ÿ”ฅ.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here ๐Ÿ”.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory