From 298e85f115d5d82324aacc850d7a754899605d34 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Thu, 4 Nov 2021 16:43:34 +0000 Subject: [PATCH] iOS: Set min supported iOS version to 13.0 --- packages/app-mobile/ios/Joplin.xcodeproj/project.pbxproj | 4 ++-- packages/app-mobile/ios/Podfile | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/app-mobile/ios/Joplin.xcodeproj/project.pbxproj b/packages/app-mobile/ios/Joplin.xcodeproj/project.pbxproj index 5f71b5d452e..ddbe02dea6a 100644 --- a/packages/app-mobile/ios/Joplin.xcodeproj/project.pbxproj +++ b/packages/app-mobile/ios/Joplin.xcodeproj/project.pbxproj @@ -588,7 +588,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", @@ -641,7 +641,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", diff --git a/packages/app-mobile/ios/Podfile b/packages/app-mobile/ios/Podfile index c3f8ef349c7..21485de8203 100644 --- a/packages/app-mobile/ios/Podfile +++ b/packages/app-mobile/ios/Podfile @@ -1,9 +1,12 @@ require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' -# Note: it was 13.4 to get @react-native-community/datetimepicker to work -# but it's probably not necessary actually. Just needed to upgrade XCode. -platform :ios, '11.0' +# Note: it was 13.4 to get @react-native-community/datetimepicker to work but +# it's probably not necessary actually. Just needed to upgrade XCode. +# +# 2021-11-04: Set to 13.0 because it crashes with 12.x +# https://github.com/laurent22/joplin/issues/5671 +platform :ios, '13.0' target 'Joplin' do config = use_native_modules!