qfish / XAlign

An amazing Xcode Source Editor extension to align regular code. It can align anything in any way you want.
MIT License
2.88k stars 386 forks source link

Not working on Xcode 6.4 #61

Open ricardobed opened 9 years ago

ricardobed commented 9 years ago

Hi,

It was working fine on Xcode 6.3.2 but it's no longer working. Can you please add the UDID so it can work on Xcode 6.4?

Thanks!

qfish commented 9 years ago

Try this in your terminal:

  1. Get current Xcode UUID

    XCODEUUID=`defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
  2. Write it into the Plug-ins's plist

    for f in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*; do defaults write "$f/Contents/Info" DVTPlugInCompatibilityUUIDs -array-add $XCODEUUID; done
ricardobed commented 9 years ago

@qfish getting a parse error near `do'

qfish commented 9 years ago

Sorry, please try again.

ricardobed commented 9 years ago

@qfish cool, that works! Thanks!

niebloomj commented 9 years ago

Any explanation is to what those two lines do in the terminal?

jmtame commented 9 years ago

Worked for me. Thanks @qfish - really enjoy using this plugin.

Alex910804 commented 9 years ago

Could not write domain /Users/Alex/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XAlign.xcplugin/Contents/Info; exiting

I copied your command into my terminal.I got this proplem and I don‘t know how to fix it.

cloay commented 9 years ago

I have this issue too.

Could not write domain /Users/Alex/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XAlign.xcplugin/Contents/Info; exiting

How to fix this ?

qfish commented 9 years ago

Try this, reinstall it.

curl -fsSL http://qfi.sh/XAlign/build/install.sh | sh
joeltay17 commented 9 years ago

Hi all,

Via command-line doesnt work for me, weird errors like Installing XAlign... \ CLEAN FAILED **

The following build commands failed:
    Create product structure
(1 failure)
** BUILD FAILED **

The following build commands failed:
    Create product structure
(1 failure)

You have to do the manual way of installing:

Download this package XAlign.tar.gz (link from readme.md) Unpack it, copy or move the XAlign.xcplugin to the following path: ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/

After this, quit your xcode.

Run in terminal the following commands XCODEUUID=defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

for f in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*; do defaults write "$f/Contents/Info" DVTPlugInCompatibilityUUIDs -array-add $XCODEUUID; done

Open your Xcode, and select Load Bundles on the alert

You're good to go!

qfish commented 9 years ago

@joeltay17 :beers:!!

playmyswift commented 9 years ago

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Xcode7 ......

playmyswift commented 9 years ago

xcode7 安装失败...

Premal-Khetani commented 8 years ago

Not working in Xcode 7 :(

airbob commented 8 years ago

the command line worked for me on Xcode7, thanks.