From e85f9bc008d12ca7e42514b7e43151dc5a3dd9fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=A7=E5=88=9A?= Date: Thu, 18 Feb 2021 16:43:05 +0800 Subject: [PATCH] Update install-Xcode_12.sh --- install-Xcode_12.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install-Xcode_12.sh b/install-Xcode_12.sh index 639d07a..b626244 100755 --- a/install-Xcode_12.sh +++ b/install-Xcode_12.sh @@ -6,7 +6,7 @@ if [ $EUID != 0 ]; then exit $? fi -sudo cp 1/* /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/ -sudo cp 2/* /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/ -sudo cp 3/* /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/ -sudo cp 4/* /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/ +sudo cp 1/* `xcode-select -p || echo /Applications/Xcode.app/Contents/Developer`/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/ +sudo cp 2/* `xcode-select -p || echo /Applications/Xcode.app/Contents/Developer`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/ +sudo cp 3/* `xcode-select -p || echo /Applications/Xcode.app/Contents/Developer`/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/ +sudo cp 4/* `xcode-select -p || echo /Applications/Xcode.app/Contents/Developer`/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/