I have enterted the code provision profile and code sign key in my cs proj like below
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' "><DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>biniPhoneRelease</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RuntimeIdentifier>ios-arm64</RuntimeIdentifier>
<ConsolePause>false</ConsolePause>
<CodesignKey>iPhone Distribution: Companyname, Inc. (USER ID)</CodesignKey>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<CodesignProvision>MyAppProvision</CodesignProvision>
<CreatePackage>false</CreatePackage> </PropertyGroup>
But when I run in Azure pipeline under DotNet publish task it shows as No Valid ios code signing key found in keychain.
Also I have added like this in DotNet publish task Argument as -p:CodesignKey=”iPhone Distribution: Companyname, Inc. (USER ID)” , but returns error as Switch: Distribution or error: Property not valid Switch: Inc. (USER ID)