Page Under Development
This page is currently under development. Instructions may change and are not complete yet.
Introduction: Modifying the Cozie App Source Code
Follow these steps to set up your environment and run the Cozie app locally for development:
-
Download and install Xcode
- Ensure you have both the iPhone and Apple Watch simulators installed.
-
Clone the Cozie repository locally You can clone the repository using Git:
git clone https://github.com/cozie-app/cozie-apple.git
cd cozie-apple -
Install CocoaPods
- Use Homebrew, you need to have Homebrew installed on your Mac. If you don't haveit, install Homebrew first then run:
brew install cocoapods
- Do not use
sudo gem install cocoapods
.
- Use Homebrew, you need to have Homebrew installed on your Mac. If you don't haveit, install Homebrew first then run:
-
Verify CocoaPods installation
- Run:
pod --version
- Run:
-
Install project dependencies
- Make sure you are in the project directory (where the
Podfile
is located) and run:pod install
- Make sure you are in the project directory (where the
-
Open the project in Xcode
- From the command line:
open Cozie.xcworkspace
- From the command line:
-
Run the app on the iPhone simulator
- In Xcode, select an iPhone device (e.g., iPhone Pro Max).
- Press the play button to build and launch the app.
- Accept all permission requests (location, health data).
-
Run the Cozie Watch App
- Change the target to "Cozie Watch App" in Xcode.
- Press play to launch the Apple Watch simulator.
- Accept all permission requests.
-
(Optional) Run on physical devices
- Connect your iPhone and Apple Watch via cable.
- Trust the device when prompted.
- Allow time for Xcode to set up the devices.
Page Under Development
Additional steps for modifying the source code will be provided soon.
Troubleshooting
- Syncing issues: Keep pressing the sync button in the Cozie iPhone app until it works.