Fixing 'exportArchive: No iOS In-House / Ad Hoc Profiles for Team'

Fixing 'exportArchive: No iOS In-House / Ad Hoc Profiles for Team'

Below is a common error when trying to set up CI/CD using Fastlane or raw XcodeBuild/Xcrun commands:

“error: exportArchive: No “iOS In House” profiles for team” or “error: exportArchive: No “adhoc In House” profiles for team”

Fixing it:

  1. The easiest way is to make a build archive in Xcode, export using Organizer, and save it to a folder.
  2. Go to the folder, open ExportOptions.plist, and replicate the same settings in Fastlane’s build_app / gym export options.
  3. In case of XcodeBuild, replace the same in the ExportOptions.plist provided in the XcodeBuild command and try again.
  4. Make a build, thank me 😄

Fastlane Build Script

build_app(scheme: "Your scheme name",

    clean: true,

    skip_profile_detection: true,

    output_directory: "output path",

    codesigning_identity: "Copy this from Xcode build settings - Code Signing",

    export_method: "enterprise",

    export_options: {

        method: "manual",

        provisioningProfiles: { 

        "com.xxx.xxxxx" => "Copy this from Xcode build settings - Provisioning Profile"

      },

      teamID: "Your team ID",

      stripSwiftSymbols: false,

      signingCertificate: "iPhone Distribution",

      thinning: "<none>"

    },

)

Related Posts

Fixing the Mysteriously Missing Core Data Objects

Fixing the Mysteriously Missing Core Data Objects

The below post helps you to identify and fix the mysteriously missing Core Data objects. I have also provided a link with a working project where I demonstrate how objects go missing and how it can be

read more
DevOps / YAML for Ionic Apps in Azure Cloud

DevOps / YAML for Ionic Apps in Azure Cloud

Azure YAML for Ionic Apps For those who run Ionic mobile apps in Azure cloud, here are the YAML templates. If you have any queries or trouble setting this up — or need a DevOps setup for your Ion

read more
Part 1 — Using Edge ML in iOS/Android: Building a Smart Savings App with Transaction Text Classification

Part 1 — Using Edge ML in iOS/Android: Building a Smart Savings App with Transaction Text Classification

Introduction This tutorial demonstrates how to build a text classification system for bank transactions using TensorFlow and deploy it on mobile platforms. The system automatically categorizes tra

read more
Part 2 — Using Edge ML in iOS: Building a Smart Savings App with Transaction Text Classification

Part 2 — Using Edge ML in iOS: Building a Smart Savings App with Transaction Text Classification

iOS Implementation with TensorFlow Lite This section demonstrates integrating the trained TensorFlow Lite model into an iOS application using Swift. Project Setup Add TensorFlow Lite depende

read more