Skip to content

Commit 03e596c

Browse files
authored
Change deployment target to iOS 17 (#24871)
* Remove the deployment target build settings on the Miniature targets * Change deployment target to iOS 17 * Temporarily disable the 'Treat warnings as errors' build setting
1 parent 99c6674 commit 03e596c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

WordPress/WordPress.xcodeproj/project.pbxproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4460,7 +4460,6 @@
44604460
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
44614461
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
44624462
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
4463-
IPHONEOS_DEPLOYMENT_TARGET = 16;
44644463
LD_RUNPATH_SEARCH_PATHS = (
44654464
"$(inherited)",
44664465
"@executable_path/Frameworks",
@@ -4512,7 +4511,6 @@
45124511
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
45134512
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
45144513
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
4515-
IPHONEOS_DEPLOYMENT_TARGET = 16;
45164514
LD_RUNPATH_SEARCH_PATHS = (
45174515
"$(inherited)",
45184516
"@executable_path/Frameworks",
@@ -4563,7 +4561,6 @@
45634561
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
45644562
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
45654563
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
4566-
IPHONEOS_DEPLOYMENT_TARGET = 16;
45674564
LD_RUNPATH_SEARCH_PATHS = (
45684565
"$(inherited)",
45694566
"@executable_path/Frameworks",
@@ -4608,7 +4605,6 @@
46084605
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
46094606
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
46104607
GENERATE_INFOPLIST_FILE = YES;
4611-
IPHONEOS_DEPLOYMENT_TARGET = 16;
46124608
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
46134609
MARKETING_VERSION = 1.0;
46144610
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
@@ -4647,7 +4643,6 @@
46474643
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
46484644
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
46494645
GENERATE_INFOPLIST_FILE = YES;
4650-
IPHONEOS_DEPLOYMENT_TARGET = 16;
46514646
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
46524647
MARKETING_VERSION = 1.0;
46534648
MTL_ENABLE_DEBUG_INFO = NO;
@@ -4685,7 +4680,6 @@
46854680
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
46864681
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
46874682
GENERATE_INFOPLIST_FILE = YES;
4688-
IPHONEOS_DEPLOYMENT_TARGET = 16;
46894683
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
46904684
MARKETING_VERSION = 1.0;
46914685
MTL_ENABLE_DEBUG_INFO = NO;

config/Common.xcconfig

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
GCC_WARN_UNUSED_PARAMETER = YES
22
WARNING_CFLAGS = -Wno-nullability-completeness
3-
IPHONEOS_DEPLOYMENT_TARGET = 16.0
3+
IPHONEOS_DEPLOYMENT_TARGET = 17.0
44
CODE_SIGN_STYLE = Manual
55

6+
// Temporarily disable this build settings. There are too many new warnings (mostly using deprecated APIs)
7+
// in the Objective-C code. We'll address them one by one, instead of on one go.
8+
// We can remove this config once all warnings are addressed.
9+
GCC_TREAT_WARNINGS_AS_ERRORS = NO
10+
611
// See https://forums.swift.org/t/swift-cant-see-objc-methods-that-include-package-symbols/65732/9
712
// Without this flag, Objective-C APIs that contains Swift types in WordPressKit will not be available
813
// to Swift code in the app target.

0 commit comments

Comments
 (0)