GithubHelp home page GithubHelp logo

sindresorhus / alfred-xcode Goto Github PK

View Code? Open in Web Editor NEW
67.0 67.0 4.0 223 KB

Alfred 3 workflow to open Xcode projects, workspaces, and playgrounds

License: MIT License

alfred alfred-workflow alfred3-workflow alfy macos npm-package

alfred-xcode's Introduction

alfred-xcode's People

Contributors

sindresorhus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

alfred-xcode's Issues

Can't install workflow

npm ERR! Failed at the [email protected] postinstall script 'alfy-init'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the alfred-xcode package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     alfy-init
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs alfred-xcode
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls alfred-xcode
npm ERR! There is likely additional logging output above.

Also, it would be nice if I can download .alfredworkflow directly.

in big sur , install is error

sudo npm install --global alfred-xcode

npm ERR! code 1
npm ERR! path /usr/local/lib/node_modules/alfred-xcode
npm ERR! command failed
npm ERR! command sh -c alfy-init
npm ERR! Error: Command failed: alfred-link
npm ERR! You are not allowed to run this app with root permissions.
npm ERR! If running without sudo doesn't work, you can either fix your permission problems or change where npm stores global packages by putting ~/npm/bin in your PATH and running:
npm ERR! npm config set prefix ~/npm
npm ERR!
npm ERR! See: https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md
npm ERR!
npm ERR!
npm ERR!     at makeError (/usr/local/lib/node_modules/alfred-xcode/node_modules/execa/index.js:174:9)
npm ERR!     at /usr/local/lib/node_modules/alfred-xcode/node_modules/execa/index.js:278:16
npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:93:5) {
npm ERR!   code: 77,
npm ERR!   stdout: '',
npm ERR!   stderr: 'You are not allowed to run this app with root permissions.\n' +
npm ERR!     "If running without sudo doesn't work, you can either fix your permission problems or change where npm stores global packages by putting ~/npm/bin in your PATH and running:\n" +
npm ERR!     'npm config set prefix ~/npm\n' +
npm ERR!     '\n' +
npm ERR!     'See: https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md\n',
npm ERR!   failed: true,
npm ERR!   signal: null,
npm ERR!   cmd: 'alfred-link',
npm ERR!   timedOut: false,
npm ERR!   killed: false
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jhmac/.npm/_logs/2020-11-23T11_12_02_145Z-debug.log

npm install failed.

Hi, when I run the npm install --global alfred-xcode command, it failed with the info below:

> [email protected] postinstall /usr/local/lib/node_modules/alfred-xcode
> alfy-init

{ [Error: Command failed: alfred-link
[Error: Alfred preferences not found at location /Users/guomin/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist]
]
  code: 1,
  killed: false,
  stdout: '',
  stderr: '[Error: Alfred preferences not found at location /Users/guomin/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist]\n',
  failed: true,
  signal: null,
  cmd: 'alfred-link',
  timedOut: false }
npm ERR! Darwin 16.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--global" "alfred-xcode"
npm ERR! node v4.5.0
npm ERR! npm  v2.15.9
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: `alfy-init`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'alfy-init'.
npm ERR! This is most likely a problem with the alfred-xcode package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     alfy-init
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs alfred-xcode
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls alfred-xcode
npm ERR! There is likely additional logging output above.

> [email protected] preuninstall /usr/local/lib/node_modules/alfred-xcode
> alfy-cleanup

{ [Error: Command failed: alfred-unlink
[Error: Alfred preferences not found at location /Users/guomin/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist]
]
  code: 1,
  killed: false,
  stdout: '',
  stderr: '[Error: Alfred preferences not found at location /Users/guomin/Library/Preferences/com.runningwithcrayons.Alfred-Preferences-3.plist]\n',
  failed: true,
  signal: null,
  cmd: 'alfred-unlink',
  timedOut: false }
npm WARN continuing anyway [email protected] preuninstall: `alfy-cleanup`
npm WARN continuing anyway Exit status 1

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/guomin/Downloads/alfred-xcode-1.1.0.alfredworkflow/npm-debug.log

I'm just update xcode to version 8.3, is that matters?
thks.

Incorrect icon for Xcode files

After installing this workflow on my new machine, I've noticed that it does not show correct icons for .xcworkspace and .xcodeproj files:
Screen Shot 2022-01-14 at 13 01 27

Xcode is set as the default application to open both file types.

Notes:
I've tried re-installing the workflow.
Everything else works as expected.
I'm currently running on macOS 12.1 (Apple Silicon).

Do you know what might be the issue here?

Also, huge kudos for creating this workflow. It's one of my most frequently used workflows ❤️

Only show the workspace if a project has both a project and workspace with the same name

It seems I would have to handle the search manually then, and run mdfind 'kMDItemContentType=com.apple.xcode.project||kMDItemContentType=com.apple.dt.document.workspace||kMDItemContentType=com.apple.dt.playground'. Not sure it's worth doing that for just this, but maybe if I need more control in the future, like options for blacklist/whitelist and depth.

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.