Skip to content

Commit d2d7551

Browse files
Merge branch 'ap/templateProject' of github.com:firebase/data-connect-ios-sdk into ap/templateProject
2 parents a1b6b9c + 16dd752 commit d2d7551

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This guide will walk you through setting up a new iOS (or other Apple platform)
2626

2727
### Prerequisites
2828

29-
* Xcode 15.0 or later
29+
* Xcode 16.2 or later
3030
* iOS 15.0 or later
3131
* A Google account for the FDC tools
3232

@@ -49,7 +49,8 @@ git clone https://github.com/firebase/data-connect-ios-sdk.git
4949
The Data Connect tools run on your Mac to provide a local development emulator and code generation service.
5050

5151
1. **Add New Scheme:** In Xcode's scheme menu, select **New Scheme...**. Choose the **`Start FDC Tools`** target and click OK.
52-
2. **Set Working Directory:** Edit the new `Start FDC Tools` scheme. Go to **Run \> Options** and check **"Use custom working directory"**. Set this to the root folder of your Xcode project. **Run the Tools:** Select the `Start FDC Tools` scheme with **My Mac** as the destination and click Run (▶). This will open the FDC tools in your web browser.
52+
2. **Set Working Directory:** Edit the new `Start FDC Tools` scheme. Go to **Run \> Options** and check **"Use custom working directory"**. Set this to the root folder of your Xcode project.
53+
3. **Run the Tools:** Select the `Start FDC Tools` scheme with **My Mac** as the destination and click Run (▶). This will open the FDC tools in your web browser.
5354

5455
### **Step 4: Generate Your Type-Safe Swift SDK**
5556

@@ -72,9 +73,8 @@ The tools will generate a custom Swift package based on your database schema.
7273

7374
In your main app file (the one with `@main`), initialize Firebase and configure Data Connect to use the local emulator.
7475

75-
Swift
7676

77-
```
77+
```swift
7878
// MyApp.swift
7979
import SwiftUI
8080
import Firebase
@@ -103,9 +103,7 @@ struct MyApp: App {
103103

104104
Now you can write data to the database from any SwiftUI view.
105105

106-
Swift
107-
108-
```
106+
```swift
109107
// ContentView.swift
110108
import SwiftUI
111109
import FirebaseDataConnect
@@ -131,16 +129,15 @@ struct ContentView: View {
131129
}
132130
```
133131

134-
*Note:* You may need to enable `App Sanbbox` -> `Outgoing Connections (Client)` for your Xcode app target to run it from iPhone simulator.
132+
*Note:* You may need to enable `App Sandbox` -> `Outgoing Connections (Client)` for your Xcode app target to run it from iPhone simulator.
135133

136134

137135
### **Step 7: Execute a Query (Read & Display Data)**
138136

139137
Use a `QueryRef` to fetch data and automatically bind it to your SwiftUI view.
140138

141-
Swift
142139

143-
```
140+
```swift
144141
// ContentView.swift
145142
import SwiftUI
146143
import FirebaseDataConnect

0 commit comments

Comments
 (0)