hazlazuardi / rehat_ios

Rehat is a comprehensive platform designed to detect the onset of panic attacks, notify the user, and guide them through personalised recovery strategies based on Cognitive Behavioural Therapy (CBT).
1 stars 0 forks source link

Rehat

DECO3801 Project #037: Self-Mental Awareness via Biofeedback

Team Avanox

Project Structure

.                           # project root
├── ios/                    # main location for Swift files
│   ├── rehat Watch App/    # main Apple Watch app files
│   ├── rehat Watch Widget/ # watch complication files
│   └── rehat_ios/          # TODO: what this do
└── src/                    # main location for React Native files
    ├── assets/             # TODO: what this all do
    ├── components/         #
    ├── context/            #
    ├── data/               #
    ├── helpers/            #
    └── screens/            #

How to run the app

Here's a step by step to run the app.

  1. Open XCode
  2. Go to Open and open the folder rehat_ios/ios
  3. Open terminal at rehat_ios, then run npm install
  4. Then in terminal navigate to rehat_ios/ios (cd ios)
  5. Then run the command pod install
  6. Back to XCode, press the play button on the top left or press Cmd + R
  7. (Optional) If you're planning to build the watch app as well go to Product -> Scheme -> Rehat Watch App

To run the app on your phone and or your watch, there are a certain things that are needed to be setup.

  1. In Xcode, navigate to rehat_ios
  2. Open the Signing and Capabilities tab
  3. Change the Team to your Apple Developer Team for all targets
  4. Change the bundle identifier for all targets
  5. Go to Product -> Destination -> Manage Run Destination
  6. Connect your phone and watch until it is shown and ready in the run destination
  7. Back to XCode, press the play button on the top left or press Cmd + R
  8. (Fix) If the build failed with the error "This app cannot be installed because its integrity could not be verified.", go to XCode Settings -> Your Apple ID -> Download Manual Profile, then run again

Acknowledgements

Panic Attack HR & HRV Dataset and ML Model: