Skip to content

Commit 10072a3

Browse files
committed
chore: update ios and macos setup to be consistent with Android, add callout for missing podfile
1 parent 049dc17 commit 10072a3

File tree

1 file changed

+18
-7
lines changed
  • src/pages/[platform]/start/platform-setup

1 file changed

+18
-7
lines changed

src/pages/[platform]/start/platform-setup/index.mdx

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,18 @@ export function getStaticProps(context) {
2424

2525
## iOS
2626

27-
Amplify requires a minimum deployment target of 13.0 and Xcode 15.0 or higher when targeting iOS.
27+
Amplify requires a minimum deployment target of 13.0 and Xcode 15.0 or higher when targeting iOS. Follow the steps below to update the minimum deployment target.
2828

29-
From your project root, navigate to the `ios/` directory and open the `Podfile` in a text editor of your choice. At the top of the file, update the target iOS platform to 13.0 or higher.
29+
Open `ios/Podfile` and update the target iOS platform to 13.0 or higher.
3030

31-
```bash
32-
platform :ios, '13.0'
31+
<Callout info>
32+
If there is no file located at `ios/Podfile`, add `amplify_flutter` to your `pubspec.yaml` and run `pub get`. This will automatically create the file.
33+
</Callout>
34+
35+
```diff title="ios/Podfile"
36+
- # Uncomment this line to define a global platform for your project
37+
- # platform :ios, '12.0'
38+
+ platform :ios, '13.0'
3339
```
3440

3541
Open your project in Xcode and select Runner, Targets -> Runner and then the "General" tab. Under the "Minimum Deployments" section, update the iOS version to 13.0 or higher.
@@ -137,10 +143,15 @@ Amplify requires a minimum deployment target of 10.15 and Xcode 15.0 or higher w
137143

138144
### Update Minimum Version
139145

140-
From your project root, navigate to the `macos/` directory and open the `Podfile` in a text editor of your choice. Update the target macOS platform to 10.15 or higher.
146+
Open `macos/Podfile` and update the target macOS platform to 10.15 or higher.
147+
148+
<Callout info>
149+
If there is no file located at `macos/Podfile`, add `amplify_flutter` to your `pubspec.yaml` and run `pub get`. This will automatically create the file.
150+
</Callout>
141151

142-
```bash
143-
platform :osx, '10.15'
152+
```diff title="ios/Podfile"
153+
- platform :osx, '10.14'
154+
+ platform :osx, '10.15'
144155
```
145156

146157
Open your project in Xcode and select Runner, Targets -> Runner and then the "General" tab. Under the "Minimum Deployments" section, update the macOS version to 10.15 or higher.

0 commit comments

Comments
 (0)