KiviLabs - Documentation

How to build and run iOS app?

Follow these steps to set up and run your application:

1. Download the Project:

  • Download the project from CodeCanyon and unzip it.

2. Locate the Mobile Apps Folder:

  • After unzipping the file, locate the mobile apps folder. Inside, you’ll find two projects named “kivilabs-clinic-admin-app” and “kivilabs-patient-app” respectively.

3. Choose Project to Open:

  • Optionally, you can copy both projects to a new location. For this guide, we’ll open the kivilabs-patient-app” project.
  • Open Android Studio and click on the “Open” button.

4. Open Project in Android Studio:

  • Locate the project you want to work with and open it.

5. Enable Dart Support

  • First, enable Dart support in the settings or by opening the main.dart file.
  • Look for the “Enable Dart Support” option in the right corner and click on it to enable Dart.

6. Get Dependencies

  • After enabling Dart support, the “Get Dependencies” option will appear.
  • Click on it to fetch the project dependencies. Any existing errors should disappear automatically after this step.

7. Install Pods

  • Open terminal
  • Ensure you have CocoaPods installed (if not, install it)
sudo gem install cocoapods
  • Navigate to the ios directory of your Flutter project
cd ios
  • Run command to install pods
pod install

OR

pod install --repo-update

After completing pod generation process click on button “Open iOS/macOS module in Xcode”

8. After opening Xcode once clear derived data from Settings/Location.

Choose “Location” and click on arrow button. It will open Xcode directory.

Delete DerivedData folder and if you don’t want previously created archives then delete Archives folder too.

Clear issue if exists from Product tab “Clear All Issues”

9. Choose device to run application – Real device or Simulator

To run in Simulator choose device from options available

10. If you encounter any error while building you can once try following steps below

  • Quit Xcode
  • Open IDE you’re using
  • Delete “.symilinks”“Pods” folders and “Podfile.lock” file from “ios” directory of your project.
  • Open terminal
  • Run command below :
flutter clean;flutter pub get;cd ios;pod install --repo-update

After completion pod update process click on button “Open iOS/macOS module in Xcode” from Podfile like show in Step 7.