Skip to content

Commit c457ff0

Browse files
authored
Merge pull request #7062 from woocommerce/xcode-14
Upgrade to support Xcode 14.0
2 parents 83036c1 + 21de10c commit c457ff0

File tree

18 files changed

+64
-26
lines changed

18 files changed

+64
-26
lines changed

.buildkite/pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ common_params:
88
repo: "woocommerce/woocommerce-ios/"
99
# Common environment values to use with the `env` key.
1010
- &common_env
11-
IMAGE_ID: xcode-13.4.1
11+
IMAGE_ID: xcode-14
1212

1313
# This is the default pipeline – it will build and test the app
1414
steps:
@@ -68,7 +68,7 @@ steps:
6868
# UI Tests
6969
#################
7070
- label: "🔬 UI Tests (iPhone)"
71-
command: .buildkite/commands/run-ui-tests.sh UITests 'iPhone 11'
71+
command: .buildkite/commands/run-ui-tests.sh UITests 'iPhone 14'
7272
depends_on: "build"
7373
env: *common_env
7474
plugins: *common_plugins

Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ GEM
3838
sawyer (>= 0.6)
3939
chroma (0.2.0)
4040
claide (1.0.3)
41-
cocoapods (1.11.2)
41+
cocoapods (1.11.3)
4242
addressable (~> 2.8)
4343
claide (>= 1.0.2, < 2.0)
44-
cocoapods-core (= 1.11.2)
44+
cocoapods-core (= 1.11.3)
4545
cocoapods-deintegrate (>= 1.0.3, < 2.0)
4646
cocoapods-downloader (>= 1.4.0, < 2.0)
4747
cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -59,7 +59,7 @@ GEM
5959
cocoapods-catalyst-support (0.1.3)
6060
cocoapods (~> 1.9)
6161
colored2 (~> 3.1)
62-
cocoapods-core (1.11.2)
62+
cocoapods-core (1.11.3)
6363
activesupport (>= 5.0, < 7)
6464
addressable (~> 2.8)
6565
algoliasearch (~> 1.0)
@@ -70,7 +70,7 @@ GEM
7070
public_suffix (~> 4.0)
7171
typhoeus (~> 1.0)
7272
cocoapods-deintegrate (1.0.5)
73-
cocoapods-downloader (1.5.1)
73+
cocoapods-downloader (1.6.3)
7474
cocoapods-plugins (1.0.0)
7575
nap
7676
cocoapods-search (1.0.1)
@@ -181,7 +181,7 @@ GEM
181181
progress_bar (~> 1.3)
182182
rake (>= 12.3, < 14.0)
183183
rake-compiler (~> 1.0)
184-
ffi (1.15.4)
184+
ffi (1.15.5)
185185
fourflusher (2.3.1)
186186
fuzzy_match (2.0.4)
187187
gh_inspector (1.1.3)

Networking/Networking.xcodeproj/xcshareddata/xcschemes/Networking.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1210"
3+
LastUpgradeVersion = "1400"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Podfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,5 +360,14 @@ post_install do |installer|
360360
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'ALPHA=1']
361361
end
362362
end
363+
364+
# Fix a code signing issue in Xcode 14 beta.
365+
# This solution is suggested here: https://github.com/CocoaPods/CocoaPods/issues/11402#issuecomment-1189861270
366+
# ====================================
367+
installer.pods_project.targets.each do |target|
368+
target.build_configurations.each do |config|
369+
config.build_settings['CODE_SIGN_IDENTITY'] = ''
370+
end
371+
end
363372
# rubocop:enable Style/CombinableLoops
364373
end

Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ SPEC CHECKSUMS:
179179
ZendeskSupportProvidersSDK: 2bdf8544f7cd0fd4c002546f5704b813845beb2a
180180
ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba
181181

182-
PODFILE CHECKSUM: 0b413ca49ed0793630b6cffce7d1dabbaf0d2886
182+
PODFILE CHECKSUM: 3e746ecbe69d5cf22e0377beba8d803003558dd6
183183

184-
COCOAPODS: 1.11.2
184+
COCOAPODS: 1.11.3

Storage/Storage.xcodeproj/xcshareddata/xcschemes/Storage.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1210"
3+
LastUpgradeVersion = "1400"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

WooCommerce/Classes/ViewRelated/Hub Menu/HubMenuViewController.swift

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,25 @@ final class HubMenuViewController: UIHostingController<HubMenu> {
3131
func showPaymentsMenu() {
3232
show(InPersonPaymentsMenuViewController(), sender: self)
3333
}
34+
35+
override func viewWillAppear(_ animated: Bool) {
36+
super.viewWillAppear(animated)
37+
38+
// We want to hide navigation bar *only* on HubMenu screen. But on iOS 16, the `navigationBarHidden(true)`
39+
// modifier on `HubMenu` view hides the navigation bar for the whole navigation stack.
40+
// Here we manually hide or show navigation bar when entering or leaving the HubMenu screen.
41+
if #available(iOS 16.0, *) {
42+
self.navigationController?.setNavigationBarHidden(true, animated: animated)
43+
}
44+
}
45+
46+
override func viewWillDisappear(_ animated: Bool) {
47+
super.viewWillDisappear(animated)
48+
49+
if #available(iOS 16.0, *) {
50+
self.navigationController?.setNavigationBarHidden(false, animated: animated)
51+
}
52+
}
3453
}
3554

3655
private extension HubMenuViewController {

WooCommerce/Classes/ViewRelated/Orders/Order Creation/PaymentSection/ShippingLineDetails.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ struct ShippingLineDetails: View {
5252
symbol: nil,
5353
keyboardType: .default)
5454
.accessibilityIdentifier("add-shipping-name-field")
55+
.onTapGesture {
56+
focusAmountInput = false
57+
}
5558
}
5659
.padding(.horizontal, insets: safeAreaInsets)
5760
.addingTopAndBottomDividers()

WooCommerce/WooCommerce.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@
708708
3F1FA84928B60126009E246C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3F1FA84828B60126009E246C /* Assets.xcassets */; };
709709
3F1FA84B28B60126009E246C /* StoreWidgets.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = 3F1FA84728B60125009E246C /* StoreWidgets.intentdefinition */; };
710710
3F1FA84C28B60126009E246C /* StoreWidgets.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = 3F1FA84728B60125009E246C /* StoreWidgets.intentdefinition */; };
711-
3F1FA84F28B60126009E246C /* StoreWidgetsExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 3F1FA84028B60125009E246C /* StoreWidgetsExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
711+
3F1FA84F28B60126009E246C /* StoreWidgetsExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 3F1FA84028B60125009E246C /* StoreWidgetsExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
712712
3F2C8A19285B038800B1A5BB /* BuildkiteTestCollector in Frameworks */ = {isa = PBXBuildFile; productRef = 3F2C8A18285B038800B1A5BB /* BuildkiteTestCollector */; };
713713
3F2C8A1B285B039900B1A5BB /* BuildkiteTestCollector in Frameworks */ = {isa = PBXBuildFile; productRef = 3F2C8A1A285B039900B1A5BB /* BuildkiteTestCollector */; };
714714
3F2C8A1D285B03A400B1A5BB /* BuildkiteTestCollector in Frameworks */ = {isa = PBXBuildFile; productRef = 3F2C8A1C285B03A400B1A5BB /* BuildkiteTestCollector */; };
@@ -1895,15 +1895,15 @@
18951895
name = "Embed Frameworks";
18961896
runOnlyForDeploymentPostprocessing = 0;
18971897
};
1898-
3F1FA85028B60126009E246C /* Embed App Extensions */ = {
1898+
3F1FA85028B60126009E246C /* Embed Foundation Extensions */ = {
18991899
isa = PBXCopyFilesBuildPhase;
19001900
buildActionMask = 2147483647;
19011901
dstPath = "";
19021902
dstSubfolderSpec = 13;
19031903
files = (
1904-
3F1FA84F28B60126009E246C /* StoreWidgetsExtension.appex in Embed App Extensions */,
1904+
3F1FA84F28B60126009E246C /* StoreWidgetsExtension.appex in Embed Foundation Extensions */,
19051905
);
1906-
name = "Embed App Extensions";
1906+
name = "Embed Foundation Extensions";
19071907
runOnlyForDeploymentPostprocessing = 0;
19081908
};
19091909
B5650B1020A4CD7F009702D0 /* Embed Frameworks */ = {
@@ -8673,7 +8673,7 @@
86738673
B5650B1020A4CD7F009702D0 /* Embed Frameworks */,
86748674
B7A94351C1ADC31EA528B895 /* [CP] Embed Pods Frameworks */,
86758675
095040D72655531C001D08FA /* Check for nested frameworks */,
8676-
3F1FA85028B60126009E246C /* Embed App Extensions */,
8676+
3F1FA85028B60126009E246C /* Embed Foundation Extensions */,
86778677
);
86788678
buildRules = (
86798679
);
@@ -8774,7 +8774,7 @@
87748774
isa = PBXProject;
87758775
attributes = {
87768776
LastSwiftUpdateCheck = 1340;
8777-
LastUpgradeCheck = 1210;
8777+
LastUpgradeCheck = 1400;
87788778
ORGANIZATIONNAME = Automattic;
87798779
TargetAttributes = {
87808780
3F1FA83F28B60125009E246C = {

WooCommerce/WooCommerce.xcodeproj/xcshareddata/xcschemes/GenerateCredentials.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1210"
3+
LastUpgradeVersion = "1400"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

0 commit comments

Comments
 (0)