@@ -22,6 +22,9 @@ struct FrameworkBuilder {
22
22
/// Platforms to be included in the built frameworks.
23
23
private let targetPlatforms : [ TargetPlatform ]
24
24
25
+ /// Minimum Version
26
+ private let minimumVersion : Float
27
+
25
28
/// The directory containing the Xcode project and Pods folder.
26
29
private let projectDir : URL
27
30
@@ -37,6 +40,10 @@ struct FrameworkBuilder {
37
40
init ( projectDir: URL , platform: Platform , dynamicFrameworks: Bool ) {
38
41
self . projectDir = projectDir
39
42
targetPlatforms = platform. platformTargets
43
+ guard let minVersion = Float ( platform. minimumVersion) else {
44
+ fatalError ( " Invalid minimum version: \( platform. minimumVersion) " )
45
+ }
46
+ minimumVersion = minVersion
40
47
self . dynamicFrameworks = dynamicFrameworks
41
48
}
42
49
@@ -189,9 +196,7 @@ struct FrameworkBuilder {
189
196
190
197
var archs = targetPlatform. archs. map { $0. rawValue } . joined ( separator: " " )
191
198
// The 32 bit archs do not build for iOS 11.
192
- // TODO: Make a more robust solution if we need to support more of a mix between iOS 11 and
193
- // under.
194
- if framework == " FirebaseAppCheck " {
199
+ if framework == " FirebaseAppCheck " || minimumVersion >= 11.0 {
195
200
if targetPlatform == . iOSDevice {
196
201
archs = " arm64 "
197
202
} else if targetPlatform == . iOSSimulator {
0 commit comments