@@ -2928,12 +2928,6 @@ That command depends on command in Target 'agg2' (project \'aProject\'): script
2928
2928
" Versions/A/Resources/Info.plist " ,
2929
2929
" Versions/A/Resources/ja.lproj " ,
2930
2930
" Versions/A/Resources/ja.lproj/Localizable.strings " ,
2931
- " Versions/A/_CodeSignature " ,
2932
- " Versions/A/_CodeSignature/CodeDirectory " ,
2933
- " Versions/A/_CodeSignature/CodeRequirements " ,
2934
- " Versions/A/_CodeSignature/CodeRequirements-1 " ,
2935
- " Versions/A/_CodeSignature/CodeResources " ,
2936
- " Versions/A/_CodeSignature/CodeSignature " ,
2937
2931
" Versions/Current " ,
2938
2932
]
2939
2933
@@ -2970,12 +2964,6 @@ That command depends on command in Target 'agg2' (project \'aProject\'): script
2970
2964
" Versions/A/Headers/AFwk.h " ,
2971
2965
" Versions/A/Resources/AResource.plist " ,
2972
2966
" Versions/A/Resources/Info.plist " ,
2973
- " Versions/A/_CodeSignature " ,
2974
- " Versions/A/_CodeSignature/CodeDirectory " ,
2975
- " Versions/A/_CodeSignature/CodeRequirements " ,
2976
- " Versions/A/_CodeSignature/CodeRequirements-1 " ,
2977
- " Versions/A/_CodeSignature/CodeResources " ,
2978
- " Versions/A/_CodeSignature/CodeSignature " ,
2979
2967
" Versions/Current " ,
2980
2968
] )
2981
2969
}
@@ -3061,7 +3049,7 @@ That command depends on command in Target 'agg2' (project \'aProject\'): script
3061
3049
] ) )
3062
3050
}
3063
3051
3064
- let sourceDynamicFrameworkFiles = try tester. fs. traverse ( sourceDynamicFrameworkPath, { $0. relativeSubpath ( from: sourceDynamicFrameworkPath) } ) . sorted ( )
3052
+ let sourceDynamicFrameworkFiles = try tester. fs. traverse ( sourceDynamicFrameworkPath, { $0. relativeSubpath ( from: sourceDynamicFrameworkPath) } ) . sorted ( ) . filter { !$0 . contains ( " _CodeSignature " ) }
3065
3053
if runDestination. platform == " macosx " {
3066
3054
XCTAssertEqualSequences ( sourceDynamicFrameworkFiles, [
3067
3055
" ADynamicFwk " ,
@@ -3075,12 +3063,6 @@ That command depends on command in Target 'agg2' (project \'aProject\'): script
3075
3063
" Versions/A/Resources " ,
3076
3064
" Versions/A/Resources/ADynamicResource.plist " ,
3077
3065
" Versions/A/Resources/Info.plist " ,
3078
- " Versions/A/_CodeSignature " ,
3079
- " Versions/A/_CodeSignature/CodeDirectory " ,
3080
- " Versions/A/_CodeSignature/CodeRequirements " ,
3081
- " Versions/A/_CodeSignature/CodeRequirements-1 " ,
3082
- " Versions/A/_CodeSignature/CodeResources " ,
3083
- " Versions/A/_CodeSignature/CodeSignature " ,
3084
3066
" Versions/Current " ,
3085
3067
] )
3086
3068
} else {
@@ -3090,8 +3072,6 @@ That command depends on command in Target 'agg2' (project \'aProject\'): script
3090
3072
" Headers " ,
3091
3073
" Headers/ADynamicFwk.h " ,
3092
3074
" Info.plist " ,
3093
- " _CodeSignature " ,
3094
- " _CodeSignature/CodeResources " ,
3095
3075
] )
3096
3076
}
3097
3077
@@ -3111,7 +3091,7 @@ That command depends on command in Target 'agg2' (project \'aProject\'): script
3111
3091
] ) )
3112
3092
}
3113
3093
3114
- let sourceStaticFrameworkFiles = try tester. fs. traverse ( sourceStaticFrameworkPath, { $0. relativeSubpath ( from: sourceStaticFrameworkPath) } ) . sorted ( )
3094
+ let sourceStaticFrameworkFiles = try tester. fs. traverse ( sourceStaticFrameworkPath, { $0. relativeSubpath ( from: sourceStaticFrameworkPath) } ) . sorted ( ) . filter { !$0 . contains ( " _CodeSignature " ) }
3115
3095
if runDestination. platform == " macosx " {
3116
3096
XCTAssertEqualSequences ( sourceStaticFrameworkFiles, [
3117
3097
" AStaticFwk " ,
@@ -3125,12 +3105,6 @@ That command depends on command in Target 'agg2' (project \'aProject\'): script
3125
3105
" Versions/A/Resources " ,
3126
3106
" Versions/A/Resources/AStaticResource.plist " ,
3127
3107
" Versions/A/Resources/Info.plist " ,
3128
- " Versions/A/_CodeSignature " ,
3129
- " Versions/A/_CodeSignature/CodeDirectory " ,
3130
- " Versions/A/_CodeSignature/CodeRequirements " ,
3131
- " Versions/A/_CodeSignature/CodeRequirements-1 " ,
3132
- " Versions/A/_CodeSignature/CodeResources " ,
3133
- " Versions/A/_CodeSignature/CodeSignature " ,
3134
3108
" Versions/Current " ,
3135
3109
] )
3136
3110
} else {
@@ -3140,12 +3114,6 @@ That command depends on command in Target 'agg2' (project \'aProject\'): script
3140
3114
" Headers " ,
3141
3115
" Headers/AStaticFwk.h " ,
3142
3116
" Info.plist " ,
3143
- " _CodeSignature " ,
3144
- " _CodeSignature/CodeDirectory " ,
3145
- " _CodeSignature/CodeRequirements " ,
3146
- " _CodeSignature/CodeRequirements-1 " ,
3147
- " _CodeSignature/CodeResources " ,
3148
- " _CodeSignature/CodeSignature " ,
3149
3117
] )
3150
3118
}
3151
3119
@@ -3199,7 +3167,7 @@ That command depends on command in Target 'agg2' (project \'aProject\'): script
3199
3167
task. checkCommandLine ( [ " builtin-copy " , " -exclude " , " .DS_Store " , " -exclude " , " CVS " , " -exclude " , " .svn " , " -exclude " , " .git " , " -exclude " , " .hg " , " -exclude " , " Headers " , " -exclude " , " PrivateHeaders " , " -exclude " , " Modules " , " -exclude " , " *.tbd " , " -resolve-src-symlinks " ] + ( keepStaticBinary ? [ ] : [ " -remove-static-executable " ] ) + [ " \( tmpDirPath. str) /ADynamicFwk.framework " , frameworkDestinationDir] )
3200
3168
3201
3169
let destDynamicFrameworkPath = Path ( " \( frameworkDestinationDir) /ADynamicFwk.framework " )
3202
- let delta = try Set ( sourceDynamicFrameworkFiles) . diff ( against: tester. fs. traverse ( destDynamicFrameworkPath, { $0. relativeSubpath ( from: destDynamicFrameworkPath) } ) )
3170
+ let delta = try Set ( sourceDynamicFrameworkFiles) . diff ( against: tester. fs. traverse ( destDynamicFrameworkPath, { $0. relativeSubpath ( from: destDynamicFrameworkPath) } ) . filter { !$0 . contains ( " _CodeSignature " ) } )
3203
3171
XCTAssertEqualSequences ( delta. right, [ ] )
3204
3172
3205
3173
// Check that we removed all the headers
@@ -3221,7 +3189,7 @@ That command depends on command in Target 'agg2' (project \'aProject\'): script
3221
3189
task. checkCommandLine ( [ " builtin-copy " , " -exclude " , " .DS_Store " , " -exclude " , " CVS " , " -exclude " , " .svn " , " -exclude " , " .git " , " -exclude " , " .hg " , " -exclude " , " Headers " , " -exclude " , " PrivateHeaders " , " -exclude " , " Modules " , " -exclude " , " *.tbd " , " -resolve-src-symlinks " ] + ( keepStaticBinary ? [ ] : [ " -remove-static-executable " ] ) + [ " \( tmpDirPath. str) /AStaticFwk.framework " , frameworkDestinationDir] )
3222
3190
3223
3191
let destStaticFrameworkPath = Path ( " \( frameworkDestinationDir) /AStaticFwk.framework " )
3224
- let delta = try Set ( sourceStaticFrameworkFiles) . diff ( against: tester. fs. traverse ( destStaticFrameworkPath, { $0. relativeSubpath ( from: destStaticFrameworkPath) } ) )
3192
+ let delta = try Set ( sourceStaticFrameworkFiles) . diff ( against: tester. fs. traverse ( destStaticFrameworkPath, { $0. relativeSubpath ( from: destStaticFrameworkPath) } ) . filter { !$0 . contains ( " _CodeSignature " ) } )
3225
3193
XCTAssertEqualSequences ( delta. right, [ ] )
3226
3194
3227
3195
// Check that we removed all the headers, as well as the binary (since it is static), if configured
@@ -3240,22 +3208,10 @@ That command depends on command in Target 'agg2' (project \'aProject\'): script
3240
3208
" Headers/AStaticFwk.h " ,
3241
3209
] )
3242
3210
} else if useAppStoreCodelessFrameworksWorkaround {
3243
- let additionalFiles : [ String ]
3244
- if codesign {
3245
- additionalFiles = [
3246
- " _CodeSignature/CodeDirectory " ,
3247
- " _CodeSignature/CodeRequirements " ,
3248
- " _CodeSignature/CodeRequirements-1 " ,
3249
- " _CodeSignature/CodeSignature " ,
3250
- ]
3251
- } else {
3252
- additionalFiles = [ ]
3253
- }
3254
-
3255
3211
XCTAssertEqualSequences ( delta. left. sorted ( ) , [
3256
3212
" Headers " ,
3257
3213
" Headers/AStaticFwk.h " ,
3258
- ] + additionalFiles )
3214
+ ] )
3259
3215
} else {
3260
3216
XCTAssertEqualSequences ( delta. left. sorted ( ) , [
3261
3217
" AStaticFwk " ,
0 commit comments