Skip to main content

Setup IOS Environment

iOS Capabilities

  1. Open the iOS app with Xcode.
  2. Add the following capabilities:
  • In-app purchase
  • Push notifications
  • Sign in with Apple Screenshot 2024-03-28 at 18.33.49.png

iOS Firebase Configuration

  • In Firebase -> Settings -> General -> iOS -> download GoogleService-Info.plist.
  • Drag and drop this file into the root of your Xcode project, typically at the same level as your .xcodeproj file.
  • In the dialog box in Xcode, select "Copy items if needed" and "Create groups". Also, ensure your app's target is checked under "Add to targets".
  • Click "Finish".

Setup Firebase Messaging for iOS

Follow all instructions in this link.

Important: you need a real device to test push notifications on iOS.

Update Google Sign-In for iOS

  1. In firebase/authentification, enable Google Sign-In & apple sign-in. img.png
  2. Download the new GoogleService-Info.plist file and replace the old one. in your Xcode project.
  3. Update reversed_client_id in Info.plist with your client id found in the GoogleService-Info.plist file, in the REVERSED_CLIENT_ID key. img.png
  4. in js source src/config/index.js, update the GOOGLE_WEB_CLIENT_ID with the CLIENT_ID found in the GoogleService-Info.plist file.

Update Bundle ID for iOS

  • Access Target Settings: Open your project in Xcode, click the project name in the Project Navigator, and select your target.
  • Change Bundle Identifier: In the 'General' tab under ‘Identity’, update the ‘Bundle Identifier’.
  • Update Info.plist: Modify any Bundle Identifier references in the Info.plist file.
  • Clean Build Folder: Choose Product > Clean Build Folder in Xcode.

IAP Product Creation

  • Log into App Store Connect.
  • Select your app.
  • Go to the 'Features' tab.
  • Create In-App Purchases: Click the '+' to create a new IAP.
  • Configure IAP Details: Choose the IAP type, fill in the reference name, product ID, pricing, and description.
  • Submit for Review: Save and submit the IAP for review by Apple.

Installing Pods

After configuring the iOS environment, install dependencies:

yarn install
yarn pod-install