Skip to content

Commit 534aa3f

Browse files
atsansonesfshaza2
andauthored
Refactor macOS Getting Started (#9736)
Total refactor of macOS install. Fixes #2461 Fixes #2529 Fixes #4995 Fixes #5374 Fixes #7475 Fixes #7647 Fixes #9520 --------- Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com>
1 parent 301025e commit 534aa3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1181
-407
lines changed

_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ youtube-site: https://youtube.com
5858

5959
appmin:
6060
github_win: 2.4
61+
github_mac: 2.4
6162
vscode: 1.75
6263
android_studio: '2022.3 (Giraffe) or later'
6364
intellij_idea: '2022.3 or later'
@@ -71,7 +72,7 @@ devmin:
7172
ubuntu: '18.04 LTS'
7273
targetmin:
7374
windows: 'Microsoft Windows 7'
74-
macos: '10.13 (High Sierra)'
75+
macos: '10.13 (Ventura)'
7576
linux:
7677
debian: 9
7778
ubuntu: '18.04 LTS'
@@ -90,6 +91,7 @@ appnow:
9091
powershell: 5.0
9192
xcode: '15'
9293
ios: '17'
94+
cocoapods: '1.12'
9395

9496
########### Jekyll ###########
9597

src/_includes/docs/install/compiler/android.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
</div>
129129
{% comment %} End: Tab panes. {% endcomment -%}
130130

131-
### Agree to Android Licenses
131+
### Agree to Android licenses
132132

133133
{% include docs/help-link.md location='android-licenses' section='#android-setup' %}
134134

@@ -162,7 +162,7 @@ agree to the licenses of the Android SDK platform.
162162
<details markdown="1">
163163
<summary>How to fix the error of finding Java install</summary>
164164

165-
You may have an issue with the Android SDK locating the Java SDK.
165+
You might have an issue with the Android SDK locating the Java SDK.
166166

167167
```terminal
168168
$ flutter doctor --android-licenses
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
## Configure iOS development
2+
3+
{% assign prompt1='$' %}
4+
{% assign os = include.os %}
5+
{% assign target = include.target %}
6+
7+
### Configure Xcode
8+
9+
To develop Flutter apps for {{os}}, install Xcode to compile to native bytecode.
10+
11+
1. To configure the Xcode command-line tools to use the installed version,
12+
run the following commands.
13+
14+
```terminal
15+
{{prompt1}} sudo sh -c 'xcode-select -s /Applications/Xcode.app/Contents/Developer && xcodebuild -runFirstLaunch'
16+
```
17+
18+
To use the latest version of Xcode, use this path.
19+
If you need to use a different version, specify that path instead.
20+
21+
{% if target=="mobile-ios" %}
22+
23+
1. To install the iOS Simulator, run the following command.
24+
25+
```terminal
26+
{{prompt1}} xcodebuild -downloadPlatform iOS
27+
```
28+
29+
{% endif %}
30+
31+
1. Sign the Xcode license agreement.
32+
33+
```terminal
34+
{{prompt1}} sudo xcodebuild -license
35+
```
36+
37+
Try to keep to the current version of Xcode.
38+
39+
{% if target=="mobile-ios" %}
40+
41+
### Configure your target iOS device
42+
43+
With Xcode, you can run Flutter apps on an iOS device or on the simulator.
44+
45+
{% comment %} Nav tabs {% endcomment -%}
46+
<ul class="nav nav-tabs" id="ios-devices-vp" role="tablist">
47+
<li class="nav-item">
48+
<a class="nav-link active" id="virtual-tab" href="#virtual" role="tab" aria-controls="virtual" aria-selected="true">Virtual Device</a>
49+
</li>
50+
<li class="nav-item">
51+
<a class="nav-link" id="physical-tab" href="#physical" role="tab" aria-controls="physical" aria-selected="false">Physical Device</a>
52+
</li>
53+
</ul>
54+
55+
{% comment %} Tab panes {% endcomment -%}
56+
<div class="tab-content">
57+
58+
<div class="tab-pane active" id="virtual" role="tabpanel" aria-labelledby="virtual-tab" markdown="1">
59+
60+
{% include docs/install/devices/ios-simulator.md os=include.os %}
61+
62+
</div>
63+
64+
<div class="tab-pane" id="physical" role="tabpanel" aria-labelledby="physical-tab" markdown="1">
65+
66+
{% include docs/install/devices/ios-physical.md os=include.os %}
67+
68+
</div>
69+
</div>
70+
{% comment %} End: Tab panes. {% endcomment -%}
71+
72+
{% endif %}
73+
74+
### Install CocoaPods
75+
76+
If your apps depend on [Flutter plugins][] with native {{os}} code,
77+
install CocoaPods. Built using Ruby,
78+
CocoaPods handles the bundling of various dependencies across Flutter
79+
and {{os}} code.
80+
81+
To [install and set up CocoaPods][cocoapods], run the following commands:
82+
83+
1. Install Homebrew if necessary.
84+
85+
```terminal
86+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
87+
```
88+
89+
1. Install `ruby` using Homebrew.
90+
91+
```terminal
92+
{{prompt1}} brew install ruby
93+
```
94+
95+
1. Install `cocoapods` using Homebrew.
96+
97+
```terminal
98+
{{prompt1}} brew install cocoapods
99+
```
100+
101+
Using Homebrew reduces potential issues with chipsets and install permissions.
102+
103+
[Flutter plugins]: {{site.url}}/packages-and-plugins/developing-packages#types
104+
[cocoapods]: https://formulae.brew.sh/formula/cocoapods

src/_includes/docs/install/devices/android-emulator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
{% include docs/help-link.md location='android-emulator' section='#android-setup' %}
55

66
{% if include.os=='Windows' -%}
7-
{% assign images = 'x86' -%}
7+
{% assign images = '**x86 Images**' -%}
88
{% elsif include.os=='macOS' -%}
9-
{% assign images = 'x86' -%}
9+
{% assign images = '**x86 Images** if your Mac runs on an Intel CPU or **ARM Images** if your Mac runs on an Apple CPU' -%}
1010
{% endif -%}
1111

1212
To configure your Flutter app to run in the Android emulator,
@@ -40,7 +40,7 @@ follow these steps:
4040

4141
1. Click **Next**.
4242

43-
1. Click **{{images}} Images**.
43+
1. Click {{images}}.
4444

4545
1. Click one system image for the Android version you want to emulate.
4646

0 commit comments

Comments
 (0)