I have a azure-devops build pipeline for a xamarin forms application. When it is set to release|iphone it fails with the following error: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(646,3): error : Could not find any available provisioning profiles for iOS.
The build has a valid Apple Enterprise Certificate and Profile that are set as tasks prior to running the release build (and are successful). The same build compiles successfully on my local machine as well as App Center. The build also compiles successfully in the pipeline when I set the build to iPhoneSimulator.
The certificate and profile are in the secure library.
Any suggestions for a next step?
iOS project file snippet:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
    <DebugType>none</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\iPhone\Release</OutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <MtouchArch>ARM64</MtouchArch>
    <ConsolePause>false</ConsolePause>
    <CodesignKey>iPhone Distribution</CodesignKey>
    <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
    <CodesignExtraArgs />
    <CodesignResourceRules />
    <IpaPackageDir>$(OutputPath</IpaPackageDir>
    <IpaIncludeArtwork>true</IpaIncludeArtwork>
    <IpaMetadata>iTunesMetadata.plist</IpaMetadata>
    <IpaPackageName>CiteGuide</IpaPackageName>
    <MtouchEnableSGenConc>false</MtouchEnableSGenConc>
    <BuildIpa>true</BuildIpa>
  </PropertyGroup>