From 33855ad891cc46786fee62e5bf99950fa13a96e4 Mon Sep 17 00:00:00 2001 From: nenseso Date: Sat, 1 May 2021 13:34:21 +0800 Subject: [PATCH] [bugfix] Xcode12 MacOSX Package Types.xcspec not found --- bin/md-install | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/md-install b/bin/md-install index bfbb882..5206f81 100755 --- a/bin/md-install +++ b/bin/md-install @@ -357,9 +357,13 @@ requireBackup "$specificationFile" hasPackageTypeForCommandLineTool=`doesFileContain "$specificationFile" 'com.apple.package-type.mach-o-executable'` hasProductTypeForCommandLineTool=`doesFileContain "$specificationFile" 'com.apple.product-type.tool'` -macosxSDKSpecificationsPath=$macosSdkPlatformPath/Developer/Library/Xcode/Specifications -packageTypesForMacOSXPath="$macosxSDKSpecificationsPath/MacOSX Package Types.xcspec" -productTypesForMacOSXPath="$macosxSDKSpecificationsPath/MacOSX Product Types.xcspec" +# macosxSDKSpecificationsPath=$macosSdkPlatformPath/Developer/Library/Xcode/Specifications +# packageTypesForMacOSXPath="$macosxSDKSpecificationsPath/MacOSX Package Types.xcspec" +# productTypesForMacOSXPath="$macosxSDKSpecificationsPath/MacOSX Product Types.xcspec" + +macosxSDKSpecificationsPath=$macosSdkPlatformPath/Developer/Library/Xcode/PrivatePlugIns +packageTypesForMacOSXPath="$macosxSDKSpecificationsPath/IDEOSXSupportCore.ideplugin/Contents/Resources/MacOSX Package Types.xcspec" +productTypesForMacOSXPath="$macosxSDKSpecificationsPath/IDEOSXSupportCore.ideplugin/Contents/Resources/MacOSX Product Types.xcspec" requireFile "$packageTypesForMacOSXPath" false requireFile "$productTypesForMacOSXPath" false