ARTICLE AD BOX
I am new to iOS application code building and archiving. When I try to archive the project using the Xcode@5 task in my Azure DevOps YAML pipeline, I keep getting the same error (shared below). I have already uploaded the required certificates and two provisioning profiles—one for the main Elder app and one for the Elder Widget extension. I verified that the provisioning profiles and the .p12 certificate are valid, but I still encounter the error repeatedly. I am sharing my YAML file and the error logs below. Can someone please help me understand what is causing this issue and how to fix it?
trigger: - main pool: vmImage: 'macOS-latest' # Consider pinning to macOS-15 for consistency variables: - group: Weatherzone-iOS - name: scheme value: 'Elders' - name: workspace value: 'mobile-app-eldersweather-ios/Elders.xcworkspace' - name: configuration value: 'Release' - name: exportPath value: 'iOS-ipa' - name: artifactName value: 'ios_build' steps: - task: InstallAppleCertificate@2 displayName: 'Install Apple Certificate (.p12)' inputs: certSecureFile: 'CertificatesDistub.p12' signingIdentity: 'Apple Distribution' certPwd: '$(P12_PASSWORD)' deleteCert: true - task: InstallAppleProvisioningProfile@1 displayName: 'Install Provisioning Profile' inputs: provisioningProfileLocation: 'secureFiles' provProfileSecureFile: 'Elders_Distubution_profile_App.mobileprovision' removeProfile: true - task: InstallAppleProvisioningProfile@1 displayName: 'Install Provisioning Profile' inputs: provisioningProfileLocation: 'secureFiles' provProfileSecureFile: 'Elders_Distubution_profile_widget.mobileprovision' removeProfile: true # Diagnose available OpenWrap pods in current repos - bash: | set -euxo pipefail cd mobile-app-eldersweather-ios pod repo update pod search OpenWrap --simple || true pod search OpenWrapEventHandler --simple || true pod search OpenWrapHandler --simple || true displayName: 'Diagnose: CocoaPods repos and OpenWrap availability' continueOnError: true CocoaPods install & clean - bash: | set -euxo pipefail cd mobile-app-eldersweather-ios rm -rf ~/Library/Developer/Xcode/DerivedData sudo gem install cocoapods --no-document || true pod --version pod repo update pod deintegrate pod install --repo-update displayName: 'Install CocoaPods & refresh Pods' - bash: | set -euxo pipefail cd mobile-app-eldersweather-ios xcodebuild \ -workspace Elders.xcworkspace \ -scheme Elders \ -configuration Release \ -sdk iphoneos \ -archivePath $(build.artifactStagingDirectory)/Elders.xcarchive \ CODE_SIGN_STYLE=Manual \ CODE_SIGN_IDENTITY="Apple Distribution" \ DEVELOPMENT_TEAM=$(APPLE_TEAM_ID) \ ONLY_ACTIVE_ARCH=NO \ ENABLE_BITCODE=NO \ archive displayName: "Archive" - task: Xcode@5 displayName: "Export IPA" inputs: actions: 'exportArchive' exportOptions: 'mobile-app-eldersweather-ios/Elders/exportOptions.plist' exportPath: '$(build.artifactStagingDirectory)/$(exportPath)' archivePath: '$(build.artifactStagingDirectory)/Elders.xcarchive' # Publish artifacts - task: PublishBuildArtifacts@1 displayName: 'Publish build artifacts' inputs: PathtoPublish: '$(build.artifactStagingDirectory)' ArtifactName: '$(artifactName)'Error logs:
/Users/runner/work/1/s/mobile-app-eldersweather-ios/Elders.xcodeproj: error: "EldersWidget" requires a provisioning profile with the App Groups feature. Select a provisioning profile in the Signing & Capabilities editor. (in target 'EldersWidget' from project 'Elders')
/Users/runner/work/1/s/mobile-app-eldersweather-ios/Elders.xcodeproj: error: "Elders" requires a provisioning profile with the App Groups, In-App Purchase, and Push Notifications features. Select a provisioning profile in the Signing & Capabilities editor. (in target 'Elders' from project 'Elders')
Explore related questions
See similar questions with these tags.
