Skip to content

Commit 255a046

Browse files
authored
chore(ios): drop Xcode 10 support (#2472)
1 parent afd8554 commit 255a046

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

ios-template/App/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
platform :ios, '11.0'
22
use_frameworks!
33

4-
# workaround to avoid Xcode 10 caching of Pods that requires
4+
# workaround to avoid Xcode caching of Pods that requires
55
# Product -> Clean Build Folder after new Cordova plugins installed
66
# Requires CocoaPods 1.6 or newer
77
install! 'cocoapods', :disable_input_output_paths => true

ios/Capacitor/Capacitor/CAPBridgeViewController.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,9 @@ public class CAPBridgeViewController: UIViewController, CAPBridgeDelegate, WKScr
201201
if let statusBarStyle = plist["UIStatusBarStyle"] as? String {
202202
if (statusBarStyle == "UIStatusBarStyleDarkContent") {
203203
if #available(iOS 13.0, *) {
204-
// TODO - use .darkContent instead of rawValue once Xcode 10 support is dropped
205-
self.statusBarStyle = UIStatusBarStyle.init(rawValue: 3) ?? .default
204+
self.statusBarStyle = .darkContent
205+
} else {
206+
self.statusBarStyle = .default
206207
}
207208
} else if (statusBarStyle != "UIStatusBarStyleDefault") {
208209
self.statusBarStyle = .lightContent

ios/Capacitor/Capacitor/Plugins/StatusBar.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ public class CAPStatusBarPlugin: CAPPlugin {
2121
bridge.setStatusBarStyle(.lightContent)
2222
} else if style == "LIGHT" {
2323
if #available(iOS 13.0, *) {
24-
// TODO - use .darkContent instead of rawValue once Xcode 10 support is dropped
25-
bridge.setStatusBarStyle(UIStatusBarStyle.init(rawValue: 3) ?? .default)
24+
bridge.setStatusBarStyle(.darkContent)
2625
} else {
2726
bridge.setStatusBarStyle(.default)
2827
}

site/docs-md/basics/opening-native-projects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ contributors:
1111

1212
<p class="intro">Capacitor uses the native IDE for each platform in order to provide required configuration, and to build, test, and deploy apps.</p>
1313

14-
<p class="intro">For iOS development, that means you must have <a href="https://developer.apple.com/xcode/" target="_blank">Xcode 10</a> or above installed. For Android, <a href="https://developer.android.com/studio/index.html" target="_blank">Android Studio</a> 3 or above.</p>
14+
<p class="intro">For iOS development, that means you must have <a href="https://developer.apple.com/xcode/" target="_blank">Xcode 11</a> or above installed. For Android, <a href="https://developer.android.com/studio/index.html" target="_blank">Android Studio</a> 3 or above.</p>
1515

1616
<p class="intro">Both IDEs can be opened manually or using the <code>npx cap open</code> command:</p>
1717

site/docs-md/getting-started/dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For specific platforms, follow each guide below to ensure you have the correct d
2121

2222
## iOS Development
2323

24-
For building iOS apps, Capacitor requires a **Mac with Xcode 10 or above**. Soon, you'll be able to use [Ionic Appflow](http://ionicframework.com/appflow) to build for iOS even if you're on Windows.
24+
For building iOS apps, Capacitor requires a **Mac with Xcode 11 or above**. Soon, you'll be able to use [Ionic Appflow](http://ionicframework.com/appflow) to build for iOS even if you're on Windows.
2525

2626
Additionally, you'll need to install **[CocoaPods](https://cocoapods.org/)** (`sudo gem install cocoapods`), and install the **Xcode Command Line tools** (either from Xcode, or running `xcode-select --install`).
2727

site/docs-md/guides/push-notifications-firebase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Your `Podfile` should look something like this:
284284
platform :ios, '11.0'
285285
use_frameworks!
286286

287-
# workaround to avoid Xcode 10 caching of Pods that requires
287+
# workaround to avoid Xcode caching of Pods that requires
288288
# Product -> Clean Build Folder after new Cordova plugins installed
289289
# Requires CocoaPods 1.6 or newer
290290
install! 'cocoapods', :disable_input_output_paths => true

site/docs-md/ios/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ contributors:
1515

1616
## Getting Started
1717

18-
Building iOS apps requires some iOS development dependencies to be installed, including Xcode 10 and the Xcode command line tools.
18+
Building iOS apps requires some iOS development dependencies to be installed, including Xcode 11 and the Xcode command line tools.
1919

2020
Note: It's possible to develop and build iOS apps without a mac, such as by using Ionic Appflow's Package service. Consult your service of choice for more information.
2121

0 commit comments

Comments
 (0)