Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix xcode12 install failed issue #301

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bin/md-install
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ touch "$tempDirsFile"
#把LANG变量从当前环境中删除
unset LANG

old_xcode_resource_path="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/Resources"
new_xcode_resource_path="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/PrivatePlugIns/IDEOSXSupportCore.ideplugin/Contents/Resources"
if [[ ! -d $old_xcode_resource_path ]]; then
sudo ln -s $new_xcode_resource_path $old_xcode_resource_path
fi

#出错退出
function cleanup()
{
Expand Down