getting issue in xcode build task in azure devops

Aditya Jain 0 Reputation points
2024-11-25T08:44:42.7133333+00:00

Hi All,

I am running this below azure pipeline for iOS .

all these files are present in securefiles option of azure pipeline settings

name: '$(Rev:r)'

variables:

timeoutInMinutes: 20160 # 2 weeks

tag: '$(Build.BuildNumber)'

certSecureFileName: 'Certificates.p12'

ProvProfileSecureFile : 'Dist_ProvisioningProfileNew.mobileprovision'

pool:

vmImage: 'macOS-13'

  • task: InstallAppleCertificate@2
     inputs: 
    
       certSecureFile: $(certSecureFileName) 
    
       certPwd: $(xxxx-app-ios-cert-p12-password) 
    
       keychain: 'temp' 
    
       deleteCert: false 
    
    • script: | security find-identity -p codesigning displayName: 'Verify Apple Certificate Installation'
    • task: InstallAppleProvisioningProfile@1 inputs: provisioningProfileLocation: 'secureFiles' provProfileSecureFile: $(ProvProfileSecureFile) removeProfile: false
    • task: DownloadSecureFile@1 name: SecureFile # This gives a reference name to the downloaded file inputs: secureFile: 'xxx-ConfigFiles.zip' # Replace with your secure file name
    • task: ExtractFiles@1 inputs: archiveFilePatterns: '$(SecureFile.secureFilePath)' # Path to the downloaded zip file destinationFolder: '$(System.DefaultWorkingDirectory)/xxxx/xxxx' # Destination folder for extracted files cleanDestinationFolder: false
    • script: | cd $(System.DefaultWorkingDirectory)/xxxx /Applications/Xcode_15.2.app/Contents/Developer/usr/bin/xcodebuild \ archive \ -project xxxx.xcodeproj \ -scheme "xxxx-Dev" \ -configuration "Development" \ -archivePath $(System.DefaultWorkingDirectory)/Archive/xxxx.xcarchive \ -skipPackagePluginValidation displayName: 'Xcode Build' i am getting these errors while running the pipeline:-

this is am getting when i am doing manual signing

2024-11-25T06:52:09.1903570Z /Users/runner/work/1/s/xxxx/xxxx.xcodeproj: error: No profile for team '6BxxxxxxxxL' matching 'com.xxxx.xxxx' found: Xcode couldn't find any provisioning profiles matching '6BxxxxxxxL/com.xxxx.xxxx'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor. (in target 'xxxx' from project 'xxxxxx')

this i am getting while doing automatic signing

2024-11-25T06:00:23.4560330Z /Users/runner/work/1/s/xxxx/xxxx.xcodeproj: error: No profiles for 'com.xxxxx.xxxx' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.xxxx.xxxxx'.

but when i am running the above xcode command in macbook using terminal and adding the profile and certificate file in xcode tool

it is running fine and archiving the artifact also.

So can anyone help me in this why i am getting this issue

i have also tried the task provided by MS for xcode like xcode@5, Xcode@4, Xcode@2

but nothing helped me

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,308 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Harshitha Jannapu 605 Reputation points Microsoft Vendor
    2024-11-25T09:26:10.0333333+00:00

    Hi Aditya Jain,
    Thank you for reaching out to us on the Microsoft Q&A forum.

    Azure DevOps is currently not supported in the Q&A forums.

    I recommend initiating a new discussion through the Developer Community

    Moderators are readily available there to assist you and provide guidance.

    Please don't forget to Accept answer and close this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.