devernay / xcodelegacy

Legacy components for XCode 4-12 (deprecated compilers and Mac OS X SDKs)
https://github.com/devernay/xcodelegacy
470 stars 63 forks source link

Found XCode >= 4.3 ... Error could not find Xcode >= 4.3 in /Applications, cannot install #66

Open JonLaliberte opened 2 years ago

JonLaliberte commented 2 years ago

sudo ./XcodeLegacy-new.sh -osx1010 install Info: found Xcode >= 4.3 in /Applications/Xcode.app Error: could not find Xcode 4.2 in /Developer/Applications nor Xcode >= 4.3 in /Applications, cannot install

Not sure why this is failing. I'm on 12.4, Xcode 13.4.1, and it is installed at /Applications/Xcode.app

JonLaliberte commented 2 years ago

The issue is that in XCode 13(.4.1 at least) this path doesn't exist:

PLUGINDIR="$XCODEAPP/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins"

Specifically, the path exists up to:

$XCODEAPP/Contents/PlugIns/Xcode3Core.ideplugin/Contents/

There is no "SharedSupport" directory here. It's not clear to me how to fix it though.

For now I've switched to using XCode 12.5.1 on Monterey. I'm able to run it from the command line with:

/Applications/Xcode_12.5.1.app/Contents/MacOS/Xcode &