Skip to content

Commit 5fc7749

Browse files
authored
Discontinue bitcode inclusion (#9962)
1 parent 174be0d commit 5fc7749

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

FirebaseCore/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
- [fixed] Fixed rare crash on launch due to out-of-bounds exception in FirebaseCore. (#10025)
4646

4747
# Firebase 9.3.0
48+
- [changed] Discontinue bitcode inclusion in all binary distributions.
4849
- [fixed] Remove GoogleSignInSwiftSupport from Zip and Carthage distributions due to
4950
infeasibility. The GoogleSignIn distribution continues. (#9937)
5051

ReleaseTooling/Sources/ZipBuilder/FrameworkBuilder.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,7 @@ struct FrameworkBuilder {
215215
"BUILD_DIR=\(buildDir.path)",
216216
"-sdk", targetPlatform.sdkName,
217217
cFlags]
218-
// Add bitcode option for platforms that need it.
219-
if targetPlatform.shouldEnableBitcode {
220-
args.append("BITCODE_GENERATION_MODE=bitcode")
221-
}
218+
222219
// Code signing isn't needed for libraries. Disabling signing is required for
223220
// Catalyst libs with resources. See
224221
// https://github.com/CocoaPods/CocoaPods/issues/8891#issuecomment-573301570

ReleaseTooling/Sources/ZipBuilder/TargetPlatform.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@ enum TargetPlatform: CaseIterable {
4646
}
4747
}
4848

49-
/// Flag to determine if bitcode should be used for the target platform.
50-
var shouldEnableBitcode: Bool {
51-
switch self {
52-
// TODO: Do we need to include bitcode for Catalyst? We weren't before the latest arm64 changes.
53-
case .iOSDevice: return true
54-
case .macOS: return true
55-
case .tvOSDevice: return true
56-
default: return false
57-
}
58-
}
59-
6049
/// Name of the SDK as used by `xcodebuild` for the target platforms.
6150
var sdkName: String {
6251
switch self {

0 commit comments

Comments
 (0)