From b6ce11d7667d3ba33e5416935aa26fbc55755626 Mon Sep 17 00:00:00 2001 From: balzack Date: Mon, 2 Jan 2023 11:14:22 -0800 Subject: [PATCH] fix build issues after updating xcode, super fun --- app/mobile/ios/Databag.xcodeproj/project.pbxproj | 2 +- app/mobile/ios/Podfile | 8 ++++++++ app/mobile/ios/Podfile.lock | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/mobile/ios/Databag.xcodeproj/project.pbxproj b/app/mobile/ios/Databag.xcodeproj/project.pbxproj index dd2739e9..162ba0d5 100644 --- a/app/mobile/ios/Databag.xcodeproj/project.pbxproj +++ b/app/mobile/ios/Databag.xcodeproj/project.pbxproj @@ -461,7 +461,7 @@ "-ObjC", "-lc++", ); - OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; + OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG -D EXPO_CONFIGURATION_RELEASE"; PRODUCT_BUNDLE_IDENTIFIER = org.coredb.databag; PRODUCT_NAME = Databag; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; diff --git a/app/mobile/ios/Podfile b/app/mobile/ios/Podfile index a327ff5a..5d6cd27c 100644 --- a/app/mobile/ios/Podfile +++ b/app/mobile/ios/Podfile @@ -38,6 +38,14 @@ target 'Databag' do post_install do |installer| react_native_post_install(installer) __apply_Xcode_12_5_M1_post_install_workaround(installer) + + installer.pods_project.targets.each do |target| + if target.respond_to?(:product_type) and target.product_type != "com.apple.product-type.bundle" + target.build_configurations.each do |config| + config.build_settings['GENERATE_INFOPLIST_FILE'] = 'YES' + end + end + end end post_integrate do |installer| diff --git a/app/mobile/ios/Podfile.lock b/app/mobile/ios/Podfile.lock index d3377e0c..fa2129dd 100644 --- a/app/mobile/ios/Podfile.lock +++ b/app/mobile/ios/Podfile.lock @@ -674,7 +674,7 @@ SPEC CHECKSUMS: FirebaseInstallations: 99d24bac0243cf8b0e96cf5426340d211f0bcc80 FirebaseMessaging: 4487bbff9b9b927ba1dd3ea40d1ceb58e4ee3cb5 fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 - glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b + glog: 3d02b25ca00c2d456734d0bcff864cbc62f6ae1a GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f GoogleUtilities: 1d20a6ad97ef46f67bbdec158ce00563a671ebb7 nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431 @@ -722,6 +722,6 @@ SPEC CHECKSUMS: TOCropViewController: 3105367e808b7d3d886a74ff59bf4804e7d3ab38 Yoga: c2b1f2494060865ac1f27e49639e72371b1205fa -PODFILE CHECKSUM: 09227ff21bf728ebfa79b5db14df16bd8c8c9a36 +PODFILE CHECKSUM: f15c71aa3d4916c8b96570af8aa99894ea4a0bfd COCOAPODS: 1.11.3