File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -54,4 +54,14 @@ public struct Pod {
54
54
public func podspecName( ) -> String {
55
55
return " \( name) .podspec "
56
56
}
57
+
58
+ /// The Firebase pod does not support import validation with Xcode 12 because of the deprecated
59
+ /// ML pods not supporting the ARM Mac slice.
60
+ public func skipImportValidation( ) -> String {
61
+ if name == " Firebase " {
62
+ return " --skip-import-validation "
63
+ } else {
64
+ return " "
65
+ }
66
+ }
57
67
}
Original file line number Diff line number Diff line change @@ -48,11 +48,12 @@ enum Push {
48
48
switch destination {
49
49
case . staging:
50
50
return " pod repo push --skip-tests --use-json \( warningsOK) \( stagingLocation) " +
51
- " --skip-import-validation " + " \( pod. podspecName ( ) ) " +
51
+ pod . skipImportValidation ( ) + " \( pod. podspecName ( ) ) " +
52
52
" --sources= \( stagingRepo) .git,https://cdn.cocoapods.org "
53
53
case . trunk:
54
54
return " pod trunk push --skip-tests --synchronous \( warningsOK) " +
55
- " --skip-import-validation " + " ~/.cocoapods/repos/ \( stagingLocation) / \( pod. name) / " +
55
+ pod
56
+ . skipImportValidation ( ) + " ~/.cocoapods/repos/ \( stagingLocation) / \( pod. name) / " +
56
57
" \( manifest. versionString ( pod) ) / \( pod. name) .podspec.json "
57
58
}
58
59
} ( )
You can’t perform that action at this time.
0 commit comments