Skip to content

Instantly share code, notes, and snippets.

@Mahabali
Created December 7, 2018 03:51
Show Gist options
  • Save Mahabali/64310f94af17a53514476f9b0454bad4 to your computer and use it in GitHub Desktop.
Save Mahabali/64310f94af17a53514476f9b0454bad4 to your computer and use it in GitHub Desktop.
Dealing with "error: exportArchive: No "iOS In House" profiles for team" or error: exportArchive: No "adhoc " profiles for team
Below is a common error when trying to setup CI/CD using fastlane or raw XcodeBuild/Xcrun command
"error: exportArchive: No "iOS In House" profiles for team" or error: exportArchive: No "adhoc In House" profiles for team
Fixing it :
1) Easiest way is to make a build archive in Xcode, Export using organizer and Saving it in a folder.
2) Go to the folder, open Export Options.plist and replicate the same in Fastlane - build_app or gym - export options
3) In case of XcodeBuild - Replace the same in Export Options.plist which is provided in 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>"
},
)
@rohitdhawan
Copy link

very nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment