Skip to main content

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. You'll find two projects named "provider-handyman app" and "user app" respectively.
  3. Choose Project to Open:

    • Optionally, you can copy both projects to a new location. For this guide, we'll open the "user 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.

      Enable Dart Support

  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.

      Get Dependencies

  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"

    Install Pod

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

    Settings

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

    Settings

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

    Settings

    Clear issue if exists from Product tab "Clear All Issues"

    Product

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

    To run in Simulator choose device from options available

    Run App

    Run App

  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.

      Image

    • 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.