Reputation: 995
I'm trying to install MacPorts but it needs command-line support to be installed with Xcode (which is an option during installation)
is there any way I could install UNIX command line support with Xcode without re-installing Xcode?
Upvotes: 0
Views: 2126
Reputation: 1
There are a lot of packages in Xcode
http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_3.2.6_and_ios_sdk_4.3__final/xcode_3.2.6_and_ios_sdk_4.3.dmg
[-showChoicesXML] [-applyChoiceChangesXML <pathToFile>]
[-showChoicesAfterApplyingChangesXML <pathtoFile>]
hdid ~/Downloads/xcode_3.2.6_and_ios_sdk_4.3.dmg
sudo installer -verbose -target / /Volumes/Xcode\ and\ iOS\ SDK/Xcode\ and\ iOS\ SDK.mpkg
sudo umount -f /Volumes/Xcode\ and\ iOS\ SDK
xcodebuild -version
sudo /Developer/Library/uninstall-devtools –mode=all
Upvotes: 0
Reputation: 877
Reinstalling Xcode is non destructive so best to just do that. Your projects will all still be available.
Upvotes: 2