File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
ReleaseTooling/Sources/ZipBuilder Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 79
79
- name : Setup quickstart
80
80
run : SAMPLE="$SDK" TARGET="${SDK}Example" scripts/setup_quickstart_framework.sh \
81
81
" ${HOME}" /ios_frameworks/Firebase/FirebaseRemoteConfig/* \
82
- " ${HOME}" /ios_frameworks/Firebase/FirebaseMessaging/FirebaseInstanceID.xcframework \
83
82
" ${HOME}" /ios_frameworks/Firebase/FirebaseAnalytics/FirebaseCore.xcframework \
84
83
" ${HOME}" /ios_frameworks/Firebase/FirebaseAnalytics/PromisesObjC.xcframework \
85
84
" ${HOME}" /ios_frameworks/Firebase/FirebaseAnalytics/FirebaseInstallations.xcframework \
Original file line number Diff line number Diff line change @@ -821,13 +821,25 @@ struct FrameworkBuilder {
821
821
var slices : [ Architecture : URL ] = [ : ]
822
822
for (platform, binary) in builtSlices {
823
823
var archs = platform. archs
824
+ var forceLipoOnOneArch = false
824
825
if platform == . iOSSimulator {
825
826
// Exclude the arm64 slice for simulator since Carthage can't package as an XCFramework.
826
827
archs. removeAll ( where: { $0 == . arm64 } )
828
+ if binary. lastPathComponent == " FirebaseAppCheck " {
829
+ // Exclude i386 slice for iOS 11+ frameworks.
830
+ archs. removeAll ( where: { $0 == . i386 } )
831
+ forceLipoOnOneArch = true // Still need to run lipo because .x86_64 and arm64 were built.
832
+ }
833
+ }
834
+ if platform == . iOSDevice {
835
+ if binary. lastPathComponent == " FirebaseAppCheck " {
836
+ // Exclude armv7 slice for iOS 11+ frameworks.
837
+ archs. removeAll ( where: { $0 == . armv7 } )
838
+ }
827
839
}
828
840
829
841
// lipo doesn't work if only one architecture.
830
- if archs. count == 1 {
842
+ if archs. count == 1 , !forceLipoOnOneArch {
831
843
slices [ archs. first!] = binary
832
844
continue
833
845
}
You can’t perform that action at this time.
0 commit comments