alcatraz / Alcatraz

Package manager for Xcode
alcatraz.io
MIT License
9.88k stars 1.15k forks source link

When click the 'Package Manager',Xcode Command Line Tools are not currently installed? #406

Closed BrightBeacon closed 8 years ago

BrightBeacon commented 8 years ago

Xcode Command Line Tools are not currently installed, and are required to run Alcatraz.

Command Line Tools are available for installation in the Downloads section of Preferences.

but I'm sure Command Line Tools are currently installed...

When install with XCode Project: 2015-12-19 13:31:11.684 Xcode[2719:70545] Cloning Repo: /Users/thomasho/Library/Application Support/Alcatraz/Plug-ins/Alcatraz 2015-12-19 13:31:11.685 Xcode[2719:70545] Shell command execution failed! launch path not accessible 2015-12-19 13:31:11.685 Xcode[2719:70545] Git Clone output: (null) 2015-12-19 13:31:11.686 Xcode[2719:70545] Alcatraz update failed! Error Domain=launch path not accessible Code=667 "The operation couldn’t be completed. (launch path not accessible error 667.)" 2015-12-19 13:31:12.960 Xcode[2719:70623] DeveloperPortal: Using pre-existing current store at URL (file:///Users/thomasho/Library/Developer/Xcode/DeveloperPortal%207.2.db). 2015-12-19 13:31:16.301 Xcode[2719:70420] Failed to connect (bottomToSubtitleSpacingConstraint) outlet from (DVTTableCellViewMultiLine) to (NSLayoutConstraint): missing setter or instance variable 2015-12-19 13:31:16.301 Xcode[2719:70420] Failed to connect (topToTitleSpacingConstraint) outlet from (DVTTableCellViewMultiLine) to (NSLayoutConstraint): missing setter or instance variable 2015-12-19 13:31:19.539 Xcode[2719:70547] IDEIndexDatabase: IDEIndexDBStringStorage: bad string storage offset (33018) ... The file isn’t in the correct format. 2015-12-19 13:31:19.540 Xcode[2719:70905] IDEIndexing: Index database is corrupt, workspace 'Alcatraz' Error Domain=NSCocoaErrorDomain Code=259 "IDEIndexDBStringStorage: bad string storage offset (33018)" UserInfo=0x600002063680 {NSURL=file:///Users/thomasho/Library/Developer/Xcode/DerivedData/Alcatraz-foemtjsxiwhbuoctulcvwvpjkygm/Index/Debug/macosx10.11-x86_64/Alcatraz.xcindex/db.xcindexdb.strings-file, NSLocalizedDescription=IDEIndexDBStringStorage: bad string storage offset (33018)}

catechuman commented 8 years ago

same problem

ghost commented 8 years ago

Bump

tapthaker commented 8 years ago

+1

BrightBeacon commented 8 years ago

The solution for this is as follows:

download and extract Alcatraz repo and open project with Xcode check path to your GIT installation by typing "which git" in Terminal search for method "areCommandLineToolsAvailable" in ATZGit.m change path in launchTaskWithLaunchPath to your local GIT installation build project problem hopefully solved ;) Hope that helps anybody else...

EDIT: I haven't seen this is already mentioned in #137 #152 yet.

tapthaker commented 8 years ago

Awesome, or a simpler approach would be to create a sym link for git. My git was installed at usr/local/bin/git thus : sudo ln -s /usr/local/bin/git /usr/bin/git

BrightBeacon commented 8 years ago

@tapthaker perfect!