Ios Setup:
- Open the project folder in VS Code or Android studio, In the terminal, run following command:
- Navigate to your project's iOS folder by opening the terminal and entering cd ios, then execute the provided commands to build your app.
- Drag & Drop the ios folder in Xcode & then perform the below steps:
- Open Xcode,Right click on runner > Add files to runner, then select the GoogleServices-Info.plist
- Check if all the app name, package name, version is correct in the General Section & Make sure your bundle name is showing correct in Info section in the Xcode.
- Navigate to Signing & Capabilities, select or add the team & bundle identifier. Also make sure, background fetch & Remote notification is ticked in the Background Modes & Push notification is also enabled.
- Click on Product > Build from the top menu bar (or use the shortcut Cmd + B).
- Wait for Xcode to build the project. A progress bar will appear in the top status area.
- Once the build is successful, you'll see a message in the Xcode status bar that says Build Succeeded.
- Click the Run button (a triangle ▶️) in the top-left corner or go to Product > Run.
- If you encounter an error while building, try the following steps:
- Quit Xcode
- Open the programming IDE(For Eg. Android Studio or Visual Studio) you're using.
- Remove the ".symlinks" and "Pods" folders, along with the "Podfile.lock" file, from the "ios" directory of your project.
- Open the terminal and execute the command below:
- After completing the pod update process, click the "Open iOS module in Xcode" button in the Podfile, or alternatively, drag and drop the ios folder into Xcode and follow the steps outlined in step 3.
flutter clean
flutter pub get
cd ios
pod install --repo-update
flutter clean
flutter pub get
cd ios
pod install --repo-update