Skip to content

Enable iOS Builds in Azure Pipelines#158

Merged
jfversluis merged 1 commit intomainfrom
Enable-iOS-And-MacCatalyst-Azure-Pipelines
Oct 19, 2021
Merged

Enable iOS Builds in Azure Pipelines#158
jfversluis merged 1 commit intomainfrom
Enable-iOS-And-MacCatalyst-Azure-Pipelines

Conversation

@TheCodeTraveler
Copy link
Copy Markdown
Collaborator

@TheCodeTraveler TheCodeTraveler commented Oct 18, 2021

Fixes

This PR allows Azure Pipelines to build the iOS Sample App in CommunityToolkit.Maui.Samples.

Description

Currently, azure-pipelines.yml only builds the Android + MacCatalyst version of the sample app:

#Note: Building iOS Sample App Requires Provisioning Profile
- task: CmdLine@2
  displayName: 'Build Community Toolkit Sample'
  inputs:
    script: |
      dotnet build $(PathToCommunityToolkitSampleCsproj) -c Release -f net6.0-android
      dotnet build $(PathToCommunityToolkitSampleCsproj) -c Release -f net6.0-maccatalyst

This was done because building the iOS sample app without a Provisioning Profile would cause an error:

Build FAILED.

/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk/15.0.101-preview.9.31/tools/msbuild/iOS/Xamarin.Shared.targets(1056,3): error : Could not find any available provisioning profiles

By removing Entitlements.plist, which is currently empty, we can build the iOS app in Azure Pipelines without the need for a Provisioning Profile

Detailed Solution

  • Remove Entitlements.plist
    • Entitlements.plist requires a iOS provisioning profile + iOS signing certificate
  • Update azure-pipelines.yml to build the entire Sample App:
    - task: CmdLine@2
     displayName: 'Build Community Toolkit Sample'
     inputs:
       script: 'dotnet build $(PathToCommunityToolkitSampleCsproj) -c Release'

@jfversluis jfversluis merged commit aa6890d into main Oct 19, 2021
@delete-merged-branch delete-merged-branch bot deleted the Enable-iOS-And-MacCatalyst-Azure-Pipelines branch October 19, 2021 12:12
@github-actions github-actions bot locked and limited conversation to collaborators Nov 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants