Face Capture – iOS

Estimated reading: 2 minutes 118 views

Step 1: Add Your GitHub Account to Xcode:

  1. Open Xcode and go to Xcode > Settings... (or Preferences...).
  2. Click on the Accounts tab.
  3. Click the + button in the bottom left and select GitHub.
  4. Enter your GitHub username. Aware-Distribution
  5. For the password, paste the Personal Access Token you just copied.
  6. Click Sign In. Your account should now appear in the list.

    Step 2: Add the Package to Your Xcode Project 📦

    Now you can add the package just like you would with a public one.

    1. In your Xcode project, go to the menu bar and select File > Add Packages....
    2. A new window will appear. In the search bar at the top right, paste the HTTPS URLhttps://github.com/Aware-Distribution/iOS-Face-Capture
    3. Xcode will use your authenticated account to find the repository. It will show the package name and the available tagged versions.
    4. For Dependency Rule, you can leave it as "Up to Next Major Version" and select the latest version (e.g., 1.0.0).
    5. Click Add Package.
    6. A final sheet will appear asking which products to add to which target. Check the box next to your library product (e.g., FaceCapture) and make sure your main app target is selected in the dropdown.
    7. Click Add Package.

    Step 3: Use the Framework in Your Code 👨‍💻

    You're all set! Xcode will download the binary from your releases repository and link it to your project.

    To use it, simply go to any Swift file in your project and import it:

    CONTENTS