Skip to main content

Quick Start

Get Breeze up and running in just a few steps:
1

Open the project in Xcode

Navigate to the BreezeApp directory and open the Xcode project:
cd BreezeApp
open BreezeApp.xcodeproj
Make sure you have Xcode 15.0 or later installed before proceeding.
2

Configure API Keys (Optional)

For pollen and allergy data, add your Google Pollen API key:
  1. In Xcode, go to Product β†’ Scheme β†’ Edit Scheme
  2. Select Run from the left sidebar
  3. Go to the Arguments tab
  4. Under Environment Variables, click the + button
  5. Add: GOOGLE_POLLEN_API_KEY with your API key value
The app will work without this key, but pollen data will not be available. All other features (air quality, pollutants, climate) will function normally.
3

Select your target device

Choose a simulator or physical device:
  • For simulator: Select iPhone 15 or later (recommended)
  • For physical device: Connect your iPhone via USB and select it from the device menu
Testing on a physical device gives you access to real location services for the β€œUse My Location” feature.
4

Build and run

Press Cmd + R or click the Play button in Xcode to build and run the app.The app will:
  1. Compile the Swift source files
  2. Launch on your selected device
  3. Display the landing screen with search and location options

Project Structure

Once opened in Xcode, you’ll see the following structure:
BreezeApp/
β”œβ”€β”€ App/
β”‚   β”œβ”€β”€ BreezeApp.swift          # App entry point with @main
β”‚   └── ContentView.swift         # Main navigation and view routing
β”œβ”€β”€ Models/
β”‚   β”œβ”€β”€ AirQuality.swift          # Air quality data structures
β”‚   β”œβ”€β”€ Pollutant.swift           # Pollutant types and thresholds
β”‚   β”œβ”€β”€ PollenData.swift          # Pollen data models
β”‚   β”œβ”€β”€ ClimateData.swift         # Historical climate data
β”‚   β”œβ”€β”€ City.swift                # City search results
β”‚   └── AppearanceMode.swift      # Dark mode preferences
β”œβ”€β”€ Services/
β”‚   β”œβ”€β”€ AirQualityService.swift   # Open-Meteo air quality API
β”‚   β”œβ”€β”€ GeocodingService.swift    # City search and geocoding
β”‚   β”œβ”€β”€ PollenService.swift       # Google Pollen API integration
β”‚   └── ClimateService.swift      # Historical weather data
β”œβ”€β”€ ViewModels/
β”‚   └── DashboardViewModel.swift  # Main state management
β”œβ”€β”€ Views/
β”‚   β”œβ”€β”€ Dashboard/
β”‚   β”‚   β”œβ”€β”€ DashboardView.swift
β”‚   β”‚   β”œβ”€β”€ AQICard.swift
β”‚   β”‚   └── PollutantsGrid.swift
β”‚   β”œβ”€β”€ Search/
β”‚   β”‚   └── SearchView.swift
β”‚   β”œβ”€β”€ Environmental/
β”‚   β”‚   β”œβ”€β”€ PollenView.swift
β”‚   β”‚   └── ClimateChartView.swift
β”‚   └── Components/
β”‚       β”œβ”€β”€ LoadingView.swift
β”‚       β”œβ”€β”€ HealthTipsView.swift
β”‚       β”œβ”€β”€ SettingsView.swift
β”‚       └── AnimatedText.swift
β”œβ”€β”€ Extensions/
β”‚   └── Color+Theme.swift         # Color theme extensions
└── Resources/
    └── Assets.xcassets           # App icons and image assets

Xcode Configuration

Development Team Setup

To run on a physical device, you’ll need to configure your development team:
  1. Select the BreezeApp project in the navigator
  2. Go to Signing & Capabilities
  3. Select your Team from the dropdown
  4. Xcode will automatically manage your signing certificate

Bundle Identifier

The default bundle identifier is:
com.breeze.airquality
You can change this in Project Settings β†’ General β†’ Identity β†’ Bundle Identifier.

Troubleshooting

Make sure you’ve selected a valid development team in Signing & Capabilities. If you’re using a free Apple Developer account, you may need to change the bundle identifier to something unique.
Verify that you’re using iOS 16.0 or later on your device or simulator. Check the deployment target in Xcode project settings.
The app requests location permission with the description: β€œBreeze needs your location to show air quality data for your area.” Make sure you’ve granted location permission when prompted. You can check this in Settings β†’ Privacy β†’ Location Services.
Pollen data requires a Google Pollen API key configured as an environment variable. If you haven’t set this up, pollen data will not be available. All other features will work normally.

Running from Command Line

You can also build and run Breeze using xcodebuild:
xcodebuild -project BreezeApp.xcodeproj \
  -scheme BreezeApp \
  -sdk iphonesimulator \
  -destination 'platform=iOS Simulator,name=iPhone 15' \
  build

Next Steps

Now that you have Breeze installed, explore these topics:

Understanding the Architecture

Learn about the app’s structure and components

API Integration

Understand how Breeze connects to external APIs

Build docs developers (and LLMs) love