Skip to content

"Vary value by Configuration" for iOS Code Signing [Scheme, Team, Profiles]??? Possible? #24621

Answered by Pastajello
LeoJHarris asked this question in Q&A
Discussion options

You must be logged in to vote

I guess you could. Define a custom property in your *.csproj :
<Brand>Default</Brand>
And then You can define different options checking this property:

<PropertyGroup Condition="'$(Brand)'=='Debug'">
          <CodesignKey>iPhone Distribution</CodesignKey>
	  <CodesignProvision>Automatic:AppStore</CodesignProvision>
</PropertyGroup>

when building you the app " dotnet publish --framework "net8.0-android" you add -p:Brand="whatever":
dotnet publish --framework "net8.0-android" -p:Brand="whatever"

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LeoJHarris
Comment options

Answer selected by LeoJHarris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants