Git Product home page Git Product logo

xcode-arch's Introduction

xcode-arch

A utility to switch running architecture of Xcode on M1 mac.

Warning

This tool is EOL because Xcode is no longer supported under Rosetta since 14.3.

Also, this tool will do nothing with Xcode 14.3.

See: https://developer.apple.com/documentation/xcode-release-notes/xcode-14_3-release-notes#Deprecations

Motivation

Currently, there is no way to toggle Open using Rosetta option other than in Finder.

off on
Rosetta off Rosetta on

This provides a command-line tool to set on/off or toggle Open using Rosetta option.

Installation

Homebrew(recommended)

brew install 417-72KI/tap/xcode-arch

Mint

mint install 417-72KI/[email protected]

Usage

$ xcode-arch -p
arm64 # `Open using Rosetta` is off
$ xcode-arch -c
Set x86_64 for /Applications/Xcode.app
$ xcode-arch -p
x86_64 # `Open using Rosetta` is on
$ xcode-arch -u
Set arm64 for /Applications/Xcode.app
$ xcode-arch -p
arm64 # `Open using Rosetta` is off

You can switch / print with specific Xcode path by using DEVELOPER_DIR.

$ DEVELOPER_DIR=/Applications/Xcode-13.2.1.app xcode-arch -c
`/Applications/Xcode-13.2.1.app` is running with x86_64

Requirements

  • macOS 12.0+
  • Xcode 13.3+ (Swift 5.6+)

xcode-arch's People

Contributors

417-72ki avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xcode-arch's Issues

to support architecture preferences toggling for Simulator.app

From xcode 14 beta onwards, we no longer have "Open with Rosetta" option for both xcode and simulator. This tools can be useful as it still force the application to run in preferred architecture. I tried and it works with xcode and just wondering can it support simulator path too ?

80433 trace trap xcode-arch -p

Hi!

I have a trouble with Xcode 14.0.0-Beta.6. It says "80023 trace trap xcode-arch -p" when I try to execute "xcode-arch -p". Also I have the same answer on my attempt with "DEVELOPER_DIR=/Applications/Xcode-14.0.0-Beta.6.app xcode-arch -p".

Can you help?

Fail launch Xcode with `--relaunch` option

$ xcode-arch -cr
Set x86_64 for /Applications/Xcode-14.1.0-Release.Candidate.2.app
The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-600 "procNotFound: no eligible process with specified descriptor" UserInfo={_LSLine=387, _LSFunction=_LSAnnotateAndSendAppleEventWithOptions}

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v3
  • actions/checkout v3
  • actions/cache v3
  • actions/upload-artifact v3
  • actions/download-artifact v3
  • kishikawakatsumi/xcresulttool v1
  • macos 12
swift
Package.swift
  • apple/swift-argument-parser from: "1.2.3"

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.