Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: No profiles for 'xyz' were found: Xcode couldn't find any iOS App Development provisioning profiles matching xyz (works locally) #20588

Open
avatar-lavventura opened this issue Oct 23, 2024 · 19 comments
Labels
Area: ABTT Akvelon Build Tasks Team area of work help wanted Task: Xcode

Comments

@avatar-lavventura
Copy link

avatar-lavventura commented Oct 23, 2024

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

MacOS

Question

I am trying to run a Azure Pipeline for Task Name: Xcode@5.

Xcode@5 fails to build an Xcode project couldn't find any iOS App Development provisioning profiles matching profile_name, resulting in a Code Signing Error with this format:

trigger:
- none

pool:
  vmImage: 'macOS-14'

resources:
 repositories:
 - repository: AheLineIOS
   type: git
   name: AheLineIOS/AheLineIOS
   trigger:
     branches:
       include:
       - deneme
     paths:
       include:
       - AHELine.UI/*
       - AheLine.Robo/*
       - AHELine.Data/*
       - AHELine.Common/*
       - Pods/*
       exclude:
       - ExportOptions_prod.plist

steps:
- checkout: AheLineIOS
  clean: true

- task: PowerShell@2
  displayName: Select Xcode Version
  inputs:
    targetType: 'inline'
    script: |
      echo Mac OS version:
      sw_vers -productVersion
      echo Installed Xcode versions:
      ls /Applications | grep 'Xcode'
      echo currently selected xcode:
      xcrun xcode-select --print-path
      echo selecting latest xcode...
      sudo xcode-select -s /Applications/Xcode_15.0.1.app
      xcrun xcode-select --print-path
      echo Selected Xcode version:
      xcodebuild -version
      xcodebuild -downloadAllPlatforms
  
- task: InstallAppleCertificate@2
  inputs:
    certSecureFile: 'DistributionCertificates2024.p12'
    certPwd: '$(provisioningProfilePassword2)'
    keychain: 'temp'
  
- task: InstallAppleProvisioningProfile@0
  inputs:
    provProfileSecureFile: 'AheMobilProd.mobileprovision'
    removeProfile: true
  
- task: Xcode@5
  inputs:
    actions: 'clean'
    configuration: 'Release'
    sdk: 'iphoneos'
    xcWorkspacePath: 'AheLine.xcworkspace'
    scheme: 'AHELine.UI'
    packageApp: true
    signingOption: 'auto'
    useXcpretty: false

- task: CopyFiles@2
  displayName: Copy ipa file
  inputs:
    SourceFolder: 'output/$(SDK)/$(Configuration)'
    Contents: '*.ipa'
    TargetFolder: '$(System.ArtifactsDirectory)/ipa'
    CleanTargetFolder: true
    OverWrite: true

- task: PublishPipelineArtifact@1
  inputs:
    targetPath: 'output/$(SDK)/$(Configuration)'
    artifact: 'ipaRelease'
    publishLocation: 'pipeline'

Important section where error is generated from in Xcode@5 task:

- task: Xcode@5
  inputs:
    actions: 'clean'
    configuration: 'Release'
    sdk: 'iphoneos'
    xcWorkspacePath: 'AheLine.xcworkspace'
    scheme: 'AHELine.UI'
    packageApp: true
    signingOption: 'auto'  
    useXcpretty: false

Here's the output where I recieve the error:

/Users/runner/work/1/s/AHELine.UI/AHELine.UI.xcodeproj: 
error: No profiles for 'com.ahe.aheline' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.ahe.aheline'. 
Automatic signing is disabled and unable to generate a profile. 
To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'AHELine.UI' from project 'AHELine.UI')
** ARCHIVE FAILED **


##[error]Error: The process '/usr/bin/xcodebuild' failed with exit code 65
@DmitriiBobreshev
Copy link
Contributor

Hi @avatar-lavventura, thank you for the feedback, I see that you're using Debug configuration for the xcode build, but the uploaded profile most probably was issued for prod(based on the name AheMobilProd.mobileprovision). Could you please check that this provisioning profile was set for debug config as well?
Also could you please share logs from InstallAppleCertificate and InstallAppleProvisioningProfile tasks to make sure that the certificate and profile was set correctly on the VM during the task execution?

@avatar-lavventura
Copy link
Author

avatar-lavventura commented Oct 24, 2024

@DmitriiBobreshev Thank you for your response. I am trying to run this on a dev.azure.com pipeline, and I was informed that it works locally on Xcode. I will double-check the AheMobilProd.mobileprovision file to see whether it was set to the debug config or not.

=> InstallAppleCertificate:

Starting: InstallAppleCertificate
==============================================================================
Task         : Install Apple certificate
Description  : Install an Apple certificate required to build on a macOS agent machine
Version      : 2.246.5
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/install-apple-certificate
==============================================================================
/usr/local/bin/openssl pkcs12 -in /Users/runner/work/_temp/Certificates2023.p12 -nokeys -passin pass:,.976431Ma,. | /usr/local/bin/openssl x509 -sha1 -noout -fingerprint -subject -dates -nameopt utf8,sep_semi_plus_space
SHA1 Fingerprint=98:E8:89:B3:BB:66:8A:CC:67:61:D8:A3:4D:D3:D5:88:E2:B9:D9:4A
subject=UID=72QVZ844RG; CN=Apple Development: ****** (*****); OU=*****; O=****i; C=US
notBefore=Nov 28 13:12:37 2023 GMT
notAfter=Nov 27 13:12:36 2024 GMT
/usr/bin/security create-keychain -p *** /Users/runner/work/_temp/ios_signing_temp.keychain

/usr/bin/security set-keychain-settings -lut 21600 /Users/runner/work/_temp/ios_signing_temp.keychain

/usr/bin/security unlock-keychain -p *** /Users/runner/work/_temp/ios_signing_temp.keychain

/usr/bin/security import /Users/runner/work/_temp/Certificates2023.p12 -P ,.976431Ma,. -A -t cert -f pkcs12 -k /Users/runner/work/_temp/ios_signing_temp.keychain
1 identity imported.

/usr/bin/security list-keychain -d user
    "/Users/runner/Library/Keychains/login.keychain-db"

/usr/bin/security list-keychain -d user -s /Users/runner/work/_temp/ios_signing_temp.keychain /Users/runner/Library/Keychains/login.keychain-db

/usr/bin/security list-keychain -d user
    "/Users/runner/work/_temp/ios_signing_temp.keychain"
    "/Users/runner/Library/Keychains/login.keychain-db"

Finishing: InstallAppleCertificate

=> Pre-job: InstallAppleProvisioningProfile:

2024-10-24T06:36:33.3709240Z ##[section]Starting: InstallAppleProvisioningProfile
2024-10-24T06:36:33.3715860Z ==============================================================================
2024-10-24T06:36:33.3716310Z Task         : Install Apple Provisioning Profile
2024-10-24T06:36:33.3716550Z Description  : Install an Apple provisioning profile required to build on a macOS agent
2024-10-24T06:36:33.3716890Z Version      : 0.124.0
2024-10-24T06:36:33.3717390Z Author       : Microsoft Corporation
2024-10-24T06:36:33.3718540Z Help         : 
2024-10-24T06:36:33.3718670Z ==============================================================================
2024-10-24T06:36:34.4187520Z (node:3738) Warning: Use Cipheriv for counter mode of aes-256-ctr
2024-10-24T06:36:34.4234360Z (node:3738) Warning: Use Cipheriv for counter mode of aes-256-ctr
2024-10-24T06:36:34.4365770Z (node:3738) Warning: Use Cipheriv for counter mode of aes-256-ctr
2024-10-24T06:36:34.4452640Z (node:3738) Warning: Use Cipheriv for counter mode of aes-256-ctr
2024-10-24T06:36:34.4633480Z (node:3738) Warning: Use Cipheriv for counter mode of aes-256-ctr
2024-10-24T06:36:34.4701830Z (node:3738) Warning: Use Cipheriv for counter mode of aes-256-ctr
2024-10-24T06:36:34.4703550Z (node:3738) Warning: Use Cipheriv for counter mode of aes-256-ctr
2024-10-24T06:36:34.4892790Z (node:3738) Warning: Use Cipheriv for counter mode of aes-256-ctr
2024-10-24T06:36:35.9444710Z [command]/usr/bin/security cms -D -i /Users/runner/work/_temp/AheMobilProd.mobileprovision
2024-10-24T06:36:35.9481030Z <?xml version="1.0" encoding="UTF-8"?>
2024-10-24T06:36:36.0484880Z (node:3738) Warning: Use Cipheriv for counter mode of aes-256-ctr
2024-10-24T06:36:36.0486150Z <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2024-10-24T06:36:36.1070200Z <plist version="1.0">
2024-10-24T06:36:36.2072820Z <dict>
2024-10-24T06:36:36.3075080Z 	<key>AppIDName</key>
2024-10-24T06:36:36.3117920Z 	<string>XC com ahe aheline</string>
2024-10-24T06:36:36.3135110Z 	<key>ApplicationIdentifierPrefix</key>
2024-10-24T06:36:36.3214440Z 	<array>
2024-10-24T06:36:36.3233780Z 	<string>*****</string>
2024-10-24T06:36:36.3251790Z 	</array>
2024-10-24T06:36:36.4254480Z 	<key>CreationDate</key>
2024-10-24T06:36:36.5256990Z 	<date>2024-07-01T16:15:25Z</date>
2024-10-24T06:36:36.6259270Z 	<key>Platform</key>
2024-10-24T06:36:36.6422120Z 	<array>
2024-10-24T06:36:36.6618050Z 		<string>iOS</string>
2024-10-24T06:36:36.6644060Z 		<string>xrOS</string>
2024-10-24T06:36:36.6814220Z 		<string>visionOS</string>
2024-10-24T06:36:36.6845940Z 	</array>
2024-10-24T06:36:36.6859870Z 	<key>IsXcodeManaged</key>
2024-10-24T06:36:36.6876770Z 	<false/>
2024-10-24T06:36:36.6891300Z 	<key>DeveloperCertificates</key>
2024-10-24T06:36:36.6926280Z 	<array>
2024-10-24T06:36:36.6945700Z 		<data>MIIF5zCCBM+gAwIBAgIQBu1OT/KSLy/0iaUkJ1ZBkDANBgkqhkiG9w0BAQsFADB1MUQwQgYDVQQDDDtBcHBsZSBXb3JsZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9ucyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTELMAkGA1UECwwCRzMxEzARBgNVBAoMCkFwcGxlIEluYy4xCzAJBgNVBAYTAlVTMB4XDTI0MDcwMTE0MTI1OFoXDTI1MDcwMTE0MTI1N1owgcIxGjAYBgoJkiaJk/IsZAEBDAo2NVI1TVczWDM4MVEwTwYDVQQDDEhpUGhvbmUgRGlzdHJpYnV0aW9uOiBBbmFkb2x1IEhheWF0IEVtZWtsaWxpayBBbm9uaW0gU2lya2V0aSAoNjVSNU1XM1gzOCkxEzARBgNVBAsMCjY1UjVNVzNYMzgxLzAtBgNVBAoMJkFuYWRvbHUgSGF5YXQgRW1la2xpbGlrIEFub25pbSBTaXJrZXRpMQswCQYDVQQGEwJVUzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL/n1KiGwOrR5QWjte36WY4ERfDayP9K+V+PZDcQISltZr7uuMbrtIJqTH/RES/MPWZoI0GgpYJJ4Ts2mXzUgRPcNIsXcg973A7O+QOVyzzSAySHCymVK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vPXqC4F5d/N66Cb8KFUb5KWK97L/PfdiaSDb7pfyGe5tyFqmVEH3ZsMDviPg4K4GjLHCwdFHjgJOGb2rYETh6iGkgsoUsoPAb2RniTHMyt2wf0YL3YhNtDdmm6A1Qkf0XaJS/neCwSq6W/cJDvXALSkUNwqwEVJp7jF+opPPCVolpodupxSY2VnfReNQVNIUklzRMWGRPLLytRU4LS8bh1aA1KsRvG902k66nIrLOd8y7yUbIfVpOriJCxdnALyNCIbHAoDzU+QzA2dwj</data>
2024-10-24T06:36:36.7017990Z 	</array>
2024-10-24T06:36:36.8018210Z 
2024-10-24T06:36:36.8534550Z 	<key>DER-Encoded-Profile</key>
2024-10-24T06:36:36.8621990Z 	<data>MIIODgYJKoZIhvcNAQcCoIIN/zCCDfsCAQExDzANBglghkgBZQMEAgEFADCCA8gGCSqGSIb3DQEHAaCCA7kEggO1MYIDsTAMDAdWZXJzaW9uAgEBMBAMClRpbWVUb0xpdmUCAgFsMBMMDklzWGNvZGVNYW5hZ2VkAQEAMBQMBE5hbWUMDEFoZU1vYmlsUHJvZDAdDAxDcmVhdGlvbkRhdGUXDTI0MDcwMTE2MTUyNVowHgwOVGVhbUlkZW50aWZpZXIwDAwKNjVSNU1XM1gzODAfDAlBcHBJRE5hbWUMElhDIGNvbSBhaGUgYWhlbGluZTAfDA5FeHBpcmF0aW9uRGF0ZRcNMjUwNzAxMTQxMjU3WjAgDBdQcm9maWxlRGlzdHJpYnV0aW9uVHlwZQwFU1RPUkUwIQwIUGxhdGZvcm0wFQwDaU9TDAR4ck9TDAh2aXNpb25PUzArDBtBcHBsaWNhdGlvbklkZW50aWZpZXJQcmVmaXgwDAwKNjVSNU1XM1gzODAsDARVVUlEDCQzMGYwNzUwMi00YzI0LTQyMDMtYjM0Yi1jMGRhYjE5M2I4YTYwMgwIVGVhbU5hbWUMJkFuYWRvbHUgSGF5YXQgRW1la2xpbGlrIEFub25pbSBTaXJrZXRpMDsMFURldmVsb3BlckNlcnRpZmljYXRlczAiB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bnRlcm5hbCB0byBBcHBsZSBQcm9kdWN0cyBhbmQvb3IgQXBwbGUgcHJvY2Vzc2VzLjAdBgNVHQ4EFgQUa/9dA5O68cXiuPQKNszUQIvxfB4wDgYDVR0PAQH/BAQDAgeAMA8GCSqGSIb3Y2QMEwQCBQAwCgYIKoZIzj0EAwIDSAAwRQIgd7NvmNWXBEx1ZzM70kAnUiu1I3l9Mft8fVdZa5450tkCIQDvFHyEuYJFJWseIWF353bMPDAjl/aiBwNAOs4S8Z0NLTGCAdcwggHTAgEBMH4wcjEmMCQGA1UEAwwdQXBwbGUgU3lzdGVtIEludGVncmF0aW9uIENBIDQxJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUwIIXK0mJBMYBb8wDQYJYIZIAWUDBAIBBQCggekwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMjQwNzAxMTYxNTI1WjAqBgkqhkiG9w0BCTQxHTAbMA0GCWCGSAFlAwQCAQUAoQoGCCqGSM49BAMCMC8GCSqGSIb3DQEJBDEiBCBtxI5lO0EuJyHRjstbGcC7n8H9QeMIWbmlrl3wpDQaQjBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4GCCqGSIb3DQMCAgIAgDANBggqhkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDAKBggqhkjOPQQDAgRHMEUCIQDFMSKWTLi/sHxXANwqhqHCY+k7pFwOloEej3+1wYB5BwIgVlr4/TXUTBKA9bSKMSPRCd2zFFKaO/CMpHkUs5Tt1nE=</data>
2024-10-24T06:36:36.8656600Z 																
2024-10-24T06:36:36.8687700Z 	<key>Entitlements</key>
2024-10-24T06:36:36.8734910Z 	<dict>
2024-10-24T06:36:36.8768390Z 		<key>beta-reports-active</key>
2024-10-24T06:36:36.8811580Z 		<true/>
2024-10-24T06:36:36.8868150Z 				
2024-10-24T06:36:36.8989840Z 				<key>com.apple.developer.nfc.readersession.formats</key>
2024-10-24T06:36:36.9096210Z 		<array>
2024-10-24T06:36:36.9142300Z 				<string>NDEF</string>
2024-10-24T06:36:36.9221700Z 				<string>TAG</string>
2024-10-24T06:36:36.9279740Z 				<string>PACE</string>
2024-10-24T06:36:36.9336330Z 		</array>
2024-10-24T06:36:36.9374270Z 				
2024-10-24T06:36:36.9387100Z 				<key>aps-environment</key>
2024-10-24T06:36:36.9421010Z 		<string>production</string>
2024-10-24T06:36:36.9468550Z 				
2024-10-24T06:36:36.9529060Z 				<key>com.apple.developer.associated-domains</key>
2024-10-24T06:36:36.9619770Z 		<string>*</string>
2024-10-24T06:36:36.9654530Z 				
2024-10-24T06:36:36.9685960Z 				<key>application-identifier</key>
2024-10-24T06:36:36.9722370Z 		<string>*****.com.ahe.aheline</string>
2024-10-24T06:36:36.9764090Z 				
2024-10-24T06:36:36.9805030Z 				<key>keychain-access-groups</key>
2024-10-24T06:36:36.9864330Z 		<array>
2024-10-24T06:36:36.9875250Z 				<string>*****.*</string>
2024-10-24T06:36:36.9921960Z 				<string>com.apple.token</string>
2024-10-24T06:36:36.9962150Z 		</array>
2024-10-24T06:36:37.0001150Z 				
2024-10-24T06:36:37.0014200Z 				<key>get-task-allow</key>
2024-10-24T06:36:37.0063050Z 		<false/>
2024-10-24T06:36:37.0087780Z 				
2024-10-24T06:36:37.0114370Z 				<key>com.apple.developer.team-identifier</key>
2024-10-24T06:36:37.0146150Z 		<string>*****</string>
2024-10-24T06:36:37.0157810Z 				
2024-10-24T06:36:37.0183560Z 				<key>com.apple.developer.devicecheck.appattest-environment</key>
2024-10-24T06:36:37.0192360Z 		<array>
2024-10-24T06:36:37.0198960Z 				<string>development</string>
2024-10-24T06:36:37.0220120Z 				<string>production</string>
2024-10-24T06:36:37.0226020Z 		</array>
2024-10-24T06:36:37.0252960Z 
2024-10-24T06:36:37.0280180Z 	</dict>
2024-10-24T06:36:37.0284190Z 	<key>ExpirationDate</key>
2024-10-24T06:36:37.0289230Z 	<date>2025-07-01T14:12:57Z</date>
2024-10-24T06:36:37.0313410Z 	<key>Name</key>
2024-10-24T06:36:37.0328990Z 	<string>AheMobilProd</string>
2024-10-24T06:36:37.0340840Z 	<key>TeamIdentifier</key>
2024-10-24T06:36:37.0357110Z 	<array>
2024-10-24T06:36:37.0365710Z 		<string>******</string>
2024-10-24T06:36:37.0374610Z 	</array>
2024-10-24T06:36:37.0378420Z 	<key>TeamName</key>
2024-10-24T06:36:37.0393220Z 	<string>*****</string>
2024-10-24T06:36:37.0395790Z 	<key>TimeToLive</key>
2024-10-24T06:36:37.0410190Z 	<integer>364</integer>
2024-10-24T06:36:37.0418600Z 	<key>UUID</key>
2024-10-24T06:36:37.0428720Z 	<string>30f07502-4c24-4203-b34b-c0dab193b8a</string>
2024-10-24T06:36:37.0450000Z 	<key>Version</key>
2024-10-24T06:36:37.0465160Z 	<integer>1</integer>
2024-10-24T06:36:37.0471340Z </dict>
2024-10-24T06:36:37.0672410Z [command]/usr/libexec/PlistBuddy -c Print UUID _xcodetasktmp.plist
2024-10-24T06:36:37.0674780Z 30f07502-4c24-4203-b34b-c0dab193b8a6
2024-10-24T06:36:37.0806140Z [command]/bin/rm -f _xcodetasktmp.plist
2024-10-24T06:36:37.0860300Z [command]/bin/cp -f /Users/runner/work/_temp/AheMobilProd.mobileprovision /Users/runner/Library/MobileDevice/Provisioning Profiles/30f07502-4c24-4203-b34b-c0dab193b8a6.mobileprovision
2024-10-24T06:36:37.0899830Z ##[section]Finishing: InstallAppleProvisioningProfile

@avatar-lavventura
Copy link
Author

@DmitriiBobreshev I confirm that I am having exact same error when I have tried: Debug configuration for Release as well :(

@avatar-lavventura
Copy link
Author

@DmitriiBobreshev Please see my update issue with latest configuration for Xcode@5 task.

@DmitriiBobreshev
Copy link
Contributor

Hi @avatar-lavventura, sorry, missed your message, could you please try InstallAppleProvisioningProfile task with version 1 as version 0 is very old and out of support?

@avatar-lavventura
Copy link
Author

avatar-lavventura commented Nov 2, 2024

I have tried with task: InstallAppleProvisioningProfile@1 its output is as follows:

2024-11-02T09:54:16.8896170Z ##[section]Starting: InstallAppleProvisioningProfile
2024-11-02T09:54:16.8902830Z ==============================================================================
2024-11-02T09:54:16.8903320Z Task         : Install Apple provisioning profile
2024-11-02T09:54:16.8903460Z Description  : Install an Apple provisioning profile required to build on a macOS agent machine
2024-11-02T09:54:16.8903650Z Version      : 1.246.3
2024-11-02T09:54:16.8903760Z Author       : Microsoft Corporation
2024-11-02T09:54:16.8903880Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/install-apple-provisioning-profile
2024-11-02T09:54:16.8904110Z ==============================================================================
2024-11-02T09:54:18.2152400Z [command]/usr/bin/security cms -D -i /Users/runner/work/_temp/AheMobilProd.mobileprovision
2024-11-02T09:54:18.2452920Z <?xml version="1.0" encoding="UTF-8"?>
2024-11-02T09:54:18.2483760Z <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2024-11-02T09:54:18.2512730Z <plist version="1.0">
2024-11-02T09:54:18.2596570Z <dict>
2024-11-02T09:54:18.2626050Z 	<key>AppIDName</key>
2024-11-02T09:54:18.2643860Z 	<string>XC com ahe aheline</string>
2024-11-02T09:54:18.2683010Z 	<key>ApplicationIdentifierPrefix</key>
2024-11-02T09:54:18.2697480Z 	<array>
2024-11-02T09:54:18.2717170Z 	<string>65R5MW3X38</string>
2024-11-02T09:54:18.2744740Z 	</array>
2024-11-02T09:54:18.2758180Z 	<key>CreationDate</key>
2024-11-02T09:54:18.2786140Z 	<date>2024-07-01T16:15:25Z</date>
2024-11-02T09:54:18.2813590Z 	<key>Platform</key>
2024-11-02T09:54:18.2842560Z 	<array>
2024-11-02T09:54:18.2871350Z 		<string>iOS</string>
2024-11-02T09:54:18.2889510Z 		<string>xrOS</string>
2024-11-02T09:54:18.2911950Z 		<string>visionOS</string>
2024-11-02T09:54:18.2955170Z 	</array>
2024-11-02T09:54:18.2981580Z 	<key>IsXcodeManaged</key>
2024-11-02T09:54:18.3010230Z 	<false/>
2024-11-02T09:54:18.3036720Z 	<key>DeveloperCertificates</key>
2024-11-02T09:54:18.3043380Z 	<array>
2024-11-02T09:54:18.3066020Z 		<data>MIIF5zCCBM+gAwIBAgIQBu1OT/KSLy/0iaUkJ1ZBkDANBgkqhkiG9w0BAQsFADB1MUQwQgYDVQQDDDtBcHBsZSBXb3JsZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9ucyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTELMAkGA1UECwwCRzMxEzARBgNVBAoMCkFwcGxlIEluYy4xCzAJBgNVBAYTAlVTMB4XDTI0MDcwMTE0MTI1OFoXDTI1MDcwMTE0MTI1N1owgcIxGjAYBgoJkiaJk/IsZAEBDAo2NVI1TVczWDM4MVEwTwYDVQQDDEhpUGhvbmUgRGlzdHJpYnV0aW9uOiBBbmFkb2x1IEhheWF0IEVtZWtsaWxpayBBbm9uaW0gU2lya2V0aSAoNjVSNU1XM1gzOCkxEzARBgNVBAsMCjY1UjVNVzNYMzgxLzAtBgNVBAoMJkFuYWRvbHUgSGF5YXQgRW1la2xpbGlrIEFub25pbSBTaXJrZXRpMQswCQYDVQQGEwJVUzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL/n1KiGwOrR5QWjte36WY4ERfDayP9K+V+PZDcQISltZr7uuMbrtIJqTH/RES/MPWZoI0GgpYJJ4Ts2mXzUgRPcNIsXcg973A7O+QOVyzzSAySHCymVKw5pCZ8TEqbwjObJluEqSJlBftBwYsTQYdmeFXOxwwwn89SJWROdMMTz0x347o6nNqZY90YYuuDhov0/5Nr0ksZgFXosjJn+rw5fmi6cA7X/qxRLvULVaLn3xetTbuUjhRW3YswFryoslsZ8WPt+njWJ7iHWz3nrxmW5AYIRRF96tPghhbzU1dSX5yGzp/rZAnPzfczFhXiLLwE8ACycqCtp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8bh1aA1KsRvG902k66nIrLOd8y7yUbIfVpOriJCxdnALyNCIbHAoDzU+QzA2dwj</data>
2024-11-02T09:54:18.3100000Z 	</array>
2024-11-02T09:54:18.3105210Z 
2024-11-02T09:54:18.3131090Z 	<key>DER-Encoded-Profile</key>
2024-11-02T09:54:18.3192560Z 	<data>MIIODgYJKoZIhvcNAQcCoIIN/zCCDfsCAQExDzANBglghkgBZQMEAgEFADCCA8gGCSqGSIb3DQEHAaCCA7kEggO1MYIDsTAMDAdWZXJzaW9uAgEBMBAMClRpbWVUb0xpdmUCAgFsMBMMDklzWGNvZGVNYW5hZ2VkAQEAMBQMBE5hbWUMDEFoZU1vYmlsUHJvZDAdDAxDcmVhdGlvbkRhdGUXDTI0MDcwMTE2MTUyNVowHgwOVGVhbUlkZW50aWZpZXIwDAwKNjVSNU1XM1gzODAfDAlBcHBJRE5hbWUMElhDIGNvbSBhaGUgYWhlbGluZTAfDA5FeHBpcmF0aW9uRGF0ZRcNMjUwNzAxMTQxMjU3WjAgDBdQcm9maWxlRGlzdHJpYnV0aW9uVHlwZQwFU1RPUkUwIQwIUGxhdGZvcm0wFQwDaU9TDAR4ck9TDAh2aXNpb25PUzArDBtBcHBsaWNhdGlvbklkZW50aWZpZXJQcmVmaXgwDAwKNjVSNU1XM1gzODAsDARVVUlEDCQzMGYwNzUwMi00YzI0LTQyMDMtYjM0Yi1jMGRhYjE5M2I4YTYwMgwIVGVhbU5hbWUMJkFuYWRvbHUgSGF5YXQgRW1la2xpbGlrIEFub25pbSBTaXJrZXRpMDsMFURldmVsb3BlckNlcnRpZmljYXRlczAiBCDA4dE2TmuM3kNIZYFqD464klmWIQyQAblN4MppzKiaaDCCAdAMDEVudGl0bGVtZW50c3CCAb4CAQGwggG3MDQMFmFwcGxpY2F0aW9uLWlkZW50aWZpZXIMGjY1UjVNVzNYMzguY29tLmFoZS5haGVsaW5lMB0MD2Fwcy1lbnZpcm9ubWVudAwKcHJvZHVjdGlvbjAYDBNiZXRhLXJl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1I3l9Mft8fVdZa5450tkCIQDvFHyEuYJFJWseIWF353bMPDAjl/aiBwNAOs4S8Z0NLTGCAdcwggHTAgEBMH4wcjEmMCQGA1UEAwwdQXBwbGUgU3lzdGVtIEludGVncmF0aW9uIENBIDQxJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUwIIXK0mJBMYBb8wDQYJYIZIAWUDBAIBBQCggekwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMjQwNzAxMTYxNTI1WjAqBgkqhkiG9w0BCTQxHTAbMA0GCWCGSAFlAwQCAQUAoQoGCCqGSM49BAMCMC8GCSqGSIb3DQEJBDEiBCBtxI5lO0EuJyHRjstbGcC7n8H9QeMIWbmlrl3wpDQaQjBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4GCCqGSIb3DQMCAgIAgDANBggqhkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDAKBggqhkjOPQQDAgRHMEUCIQDFMSKWTLi/sHxXANwqhqHCY+k7pFwOloEej3+1wYB5BwIgVlr4/TXUTBKA9bSKMSPRCd2zFFKaO/CMpHkUs5Tt1nE=</data>
2024-11-02T09:54:18.3201480Z 																
2024-11-02T09:54:18.3209420Z 	<key>Entitlements</key>
2024-11-02T09:54:18.3227290Z 	<dict>
2024-11-02T09:54:18.3254770Z 		<key>beta-reports-active</key>
2024-11-02T09:54:18.3280770Z 		<true/>
2024-11-02T09:54:18.3307730Z 				
2024-11-02T09:54:18.3337290Z 				<key>com.apple.developer.nfc.readersession.formats</key>
2024-11-02T09:54:18.3362720Z 		<array>
2024-11-02T09:54:18.3369780Z 				<string>NDEF</string>
2024-11-02T09:54:18.3398040Z 				<string>TAG</string>
2024-11-02T09:54:18.3420010Z 				<string>PACE</string>
2024-11-02T09:54:18.3425670Z 		</array>
2024-11-02T09:54:18.3452870Z 				
2024-11-02T09:54:18.3480280Z 				<key>aps-environment</key>
2024-11-02T09:54:18.3508140Z 		<string>production</string>
2024-11-02T09:54:18.3529110Z 				
2024-11-02T09:54:18.3538610Z 				<key>com.apple.developer.associated-domains</key>
2024-11-02T09:54:18.3563190Z 		<string>*</string>
2024-11-02T09:54:18.3584190Z 				
2024-11-02T09:54:18.3619300Z 				<key>application-identifier</key>
2024-11-02T09:54:18.3695760Z 		<string>65R5MW3X38.com.ahe.aheline</string>
2024-11-02T09:54:18.3740610Z 				
2024-11-02T09:54:18.3798470Z 				<key>keychain-access-groups</key>
2024-11-02T09:54:18.3996990Z 		<array>
2024-11-02T09:54:18.4027360Z 				<string>65R5MW3X38.*</string>
2024-11-02T09:54:18.4054030Z 				<string>com.apple.token</string>
2024-11-02T09:54:18.4083680Z 		</array>
2024-11-02T09:54:18.4107890Z 				
2024-11-02T09:54:18.4120020Z 				<key>get-task-allow</key>
2024-11-02T09:54:18.4146440Z 		<false/>
2024-11-02T09:54:18.4160850Z 				
2024-11-02T09:54:18.4190480Z 				<key>com.apple.developer.team-identifier</key>
2024-11-02T09:54:18.4206380Z 		<string>65R5MW3X38</string>
2024-11-02T09:54:18.4219030Z 				
2024-11-02T09:54:18.4239030Z 				<key>com.apple.developer.devicecheck.appattest-environment</key>
2024-11-02T09:54:18.4253060Z 		<array>
2024-11-02T09:54:18.4267610Z 				<string>development</string>
2024-11-02T09:54:18.4294450Z 				<string>production</string>
2024-11-02T09:54:18.4323540Z 		</array>
2024-11-02T09:54:18.4351900Z 
2024-11-02T09:54:18.4380180Z 	</dict>
2024-11-02T09:54:18.4396630Z 	<key>ExpirationDate</key>
2024-11-02T09:54:18.4412290Z 	<date>2025-07-01T14:12:57Z</date>
2024-11-02T09:54:18.4428870Z 	<key>Name</key>
2024-11-02T09:54:18.4450280Z 	<string>AheMobilProd</string>
2024-11-02T09:54:18.4471620Z 	<key>TeamIdentifier</key>
2024-11-02T09:54:18.4483850Z 	<array>
2024-11-02T09:54:18.4505300Z 		<string>65R5MW3X38</string>
2024-11-02T09:54:18.4533420Z 	</array>
2024-11-02T09:54:18.4553470Z 	<key>TeamName</key>
2024-11-02T09:54:18.4568570Z 	<string>Anadolu Hayat Emeklilik Anonim Sirketi</string>
2024-11-02T09:54:18.4590610Z 	<key>TimeToLive</key>
2024-11-02T09:54:18.4610640Z 	<integer>364</integer>
2024-11-02T09:54:18.4627150Z 	<key>UUID</key>
2024-11-02T09:54:18.4647620Z 	<string>30f07502-4c24-4203-b34b-c0dab193b8a6</string>
2024-11-02T09:54:18.4667860Z 	<key>Version</key>
2024-11-02T09:54:18.4677960Z 	<integer>1</integer>
2024-11-02T09:54:18.4699790Z </dict>
2024-11-02T09:54:18.4722000Z </plist>
2024-11-02T09:54:18.4750680Z [command]/usr/libexec/PlistBuddy -c Print UUID _xcodetasktmp.plist
2024-11-02T09:54:18.4780750Z 30f07502-4c24-4203-b34b-c0dab193b8a6
2024-11-02T09:54:18.4781500Z 
2024-11-02T09:54:18.4812420Z [command]/usr/libexec/PlistBuddy -c Print Name _xcodetasktmp.plist
2024-11-02T09:54:18.4841360Z AheMobilProd
2024-11-02T09:54:18.4869900Z 
2024-11-02T09:54:18.4881800Z [command]/bin/rm -f _xcodetasktmp.plist
2024-11-02T09:54:18.4903150Z 
2024-11-02T09:54:18.5905890Z [command]/bin/cp -f /Users/runner/work/_temp/AheMobilProd.mobileprovision /Users/runner/Library/MobileDevice/Provisioning Profiles/30f07502-4c24-4203-b34b-c0dab193b8a6.mobileprovision
2024-11-02T09:54:18.6188190Z 
2024-11-02T09:54:18.6428690Z ##[section]Finishing: InstallAppleProvisioningProfile

Now the altered error I am receiving is:

for:

- task: Xcode@5
  inputs:
    actions: 'clean'
    configuration: 'Release'
    sdk: 'iphoneos'
    xcWorkspacePath: 'AheLine.xcworkspace'
    scheme: 'AHELine.UI'
    packageApp: true
    # signingOption: 'default' 
    useXcpretty: false
    teamId: "65R5MW3X38" 
    exportTeamId: "65R5MW3X38"
** ARCHIVE SUCCEEDED **


##[warning]Failed to automatically identify the export method to use from the archive file. This might cause errors during the build or produce an invalid package. If export fails, either enable signing (set `Signing Style` to `Project Defaults`), or configure export manually (set `Export options` to `Plist` or `Specify`).
/usr/libexec/PlistBuddy -c Clear _XcodeTaskExportOptions.plist
Unrecognized Type: 
File Doesn't Exist, Will Create: _XcodeTaskExportOptions.plist
Initializing Plist...
/usr/bin/xcodebuild -exportArchive -archivePath /Users/runner/work/1/s/AHELine.UI.xcarchive -exportPath /Users/runner/work/1/s/output/iphoneos/Release -exportOptionsPlist _XcodeTaskExportOptions.plist
2024-11-02 10:20:06.279 xcodebuild[31452:125132] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/z0/m_s6x1rn5799ttl3khp8n86r0000gn/T/AHELine.UI_2024-11-02_10-20-06.269.xcdistributionlogs".
error: exportArchive: No Team Found in Archive

Error Domain=IDEDistributionAnalyzeArchiveStepErrorDomain Code=0 "No Team Found in Archive" UserInfo={NSLocalizedDescription=No Team Found in Archive, NSLocalizedRecoverySuggestion=Use the Signing & Capabilities editor to assign a team to the targets and build a new archive.}

** EXPORT FAILED **


##[error]Error: The process '/usr/bin/xcodebuild' failed with exit code 70

@DmitriiBobreshev
Copy link
Contributor

Hi @avatar-lavventura, teamId input works only when signingOption set to 'auto'(by default the value is 'nosign'), and exportTeamId input works only when exportOptions set to 'specify'.
exportTeamId input need for archive, but as I see from the logs, archive was succeded, so let's keep the exportOptions input with 'auto' and remove exportTeamId input. From the other side, based on the task, teamId is optionally needed for export, only when you are a member of multiple development teams(which might be your case).

Could you please try to set signingOption to auto and remove exportTeamId. Also Could you attach full xcode step logs with debug enabled?

- task: Xcode@5
  inputs:
    actions: 'clean'
    configuration: 'Release'
    sdk: 'iphoneos'
    xcWorkspacePath: 'AheLine.xcworkspace'
    scheme: 'AHELine.UI'
    packageApp: true
    signingOption: 'auto' 
    useXcpretty: false
    teamId: "65R5MW3X38"

@avatar-lavventura
Copy link
Author

avatar-lavventura commented Nov 5, 2024

@DmitriiBobreshev Thank you, you messages give me hope. I am keep trying optinos to solve this error. Also thank you again for your valuable guidence and patience.

- task: Xcode@5
  inputs:
    actions: 'clean'
    configuration: 'Release'
    sdk: 'iphoneos'
    xcWorkspacePath: 'AheLine.xcworkspace'
    scheme: 'AHELine.UI'
    packageApp: true
    signingOption: 'auto' 
    useXcpretty: false
    teamId: "65R5MW3X38"

=> Pre-job: InstallAppleCertificate: https://gist.github.com/avatar-lavventura/6347218367b7813a7779fe3854411ed3
=> Pre-job: InstallAppleProvisioningProfile: https://gist.github.com/avatar-lavventura/39df6b92d5c753d40e0662d7e6d0aab7

Received error messages:

CreateBuildDescription
##[debug]Agent environment resources - Disk: / Available 124466.53 MB out of 332471.96 MB, Memory: Used 8325.00 MB out of 14332.00 MB, CPU: Usage 87.16%
##[debug]Agent environment resources - Disk: / Available 122115.93 MB out of 332471.96 MB, Memory: Used 8513.00 MB out of 14331.00 MB, CPU: Usage 79.74%
##[debug]Agent environment resources - Disk: / Available 122109.40 MB out of 332471.96 MB, Memory: Used 7567.00 MB out of 14331.00 MB, CPU: Usage 93.05%
Build description signature: 35cda55e2d32c066989b22efb75f829d
Build description path: /Users/runner/Library/Developer/Xcode/DerivedData/AheLine-eocxsujbdezrsvhigklxsrkfkjlq/Build/Intermediates.noindex/ArchiveIntermediates/AHELine.UI/IntermediateBuildFilesPath/XCBuildData/35cda55e2d32c066989b22efb75f829d.xcbuilddata

/Users/runner/work/1/s/AheLine.Robo/AheLine.Robo.xcodeproj: error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "65R5MW3X38" with a private key was found. (in target 'AheLine.Robo' from project 'AheLine.Robo')
/Users/runner/work/1/s/AHELine.UI/AHELine.UI.xcodeproj: error: No profiles for 'com.ahe.aheline' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.ahe.aheline'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'AHELine.UI' from project 'AHELine.UI')
/Users/runner/work/1/s/AHELine.Common/AHELine.Common.xcodeproj: error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "65R5MW3X38" with a private key was found. (in target 'AHELine.Common' from project 'AHELine.Common')
/Users/runner/work/1/s/AHELine.Data/AHELine.Data.xcodeproj: error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "65R5MW3X38" with a private key was found. (in target 'AHELine.Data' from project 'AHELine.Data')
/Users/runner/work/1/s/Pods/Pods.xcodeproj: error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "65R5MW3X38" with a private key was found. (in target 'FlagPhoneNumber-FlagPhoneNumber' from project 'Pods')
** ARCHIVE FAILED **

##[debug]Exit code 65 received from tool '/usr/bin/xcodebuild'

##[debug]STDIO streams have closed for tool '/usr/bin/xcodebuild'
##[debug]task result: Failed
##[error]Error: The process '/usr/bin/xcodebuild' failed with exit code 65

Here (https://stackoverflow.com/a/79133785/2402577) I have adviced to use manual option.

That said: if you're still using the auto signing option, it won't work on an Azure-hosted MacOS machine.

I have also tried:

- task: Xcode@5
  inputs:
    actions: 'clean'
    configuration: 'Release'
    sdk: 'iphoneos'
    xcWorkspacePath: 'AheLine.xcworkspace'
    scheme: 'AHELine.UI'
    packageApp: true
    useXcpretty: false
    teamId: "65R5MW3X38" 
    exportTeamId: "65R5MW3X38"
    signingOption: 'manual'
    signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
    provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
    args: '-verbose CODE_SIGNING_ALLOWED=No -allowProvisioningUpdates SKIP_INSTALL=YES'

=> Pre-job: InstallAppleCertificate: https://gist.github.com/avatar-lavventura/28f75d985da9b243db88198223ae283a
=> Pre-job: InstallAppleProvisioningProfile: https://gist.github.com/avatar-lavventura/070c935a0cb793a1547978e6cae1994d

Received error message:

error: exportArchive: exportOptionsPlist error for key "method": expected one of {}, but found development

Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key "method": expected one of {}, but found development" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key "method": expected one of {}, but found development}

** EXPORT FAILED **
##[error]Error: The process '/usr/bin/xcodebuild' failed with exit code 70

@DmitriiBobreshev
Copy link
Contributor

@avatar-lavventura, that is correct, for the hosted mac-os you probably need to set manual signing.
btw seems like gist https://gist.github.com/avatar-lavventura/d71e850e4215c76d3e2fc7bf57578a1d follows to wrong log as in the gist the step failed on ARCHIVE FAILED step instead of the EXPORT FAILED.
For the signingOption: 'manual', you dont' need to set args with CODE_SIGNING_ALLOWED=No, as it's needed when you not sign the package.

For the step

- task: Xcode@5
  inputs:
    actions: 'clean'
    configuration: 'Release'
    sdk: 'iphoneos'
    xcWorkspacePath: 'AheLine.xcworkspace'
    scheme: 'AHELine.UI'
    packageApp: true
    useXcpretty: false
    teamId: "65R5MW3X38" 
    exportTeamId: "65R5MW3X38"
    signingOption: 'manual'
    signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
    provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
    args: '-verbose CODE_SIGNING_ALLOWED=No -allowProvisioningUpdates SKIP_INSTALL=YES'

You'd probably need
exportOptions: 'specify' - as you specifying exportTeamId
and also you need to set provisioningProfileName otherwise it will be overridden with empty value.
As the result the step will be something like:

- task: Xcode@5
  inputs:
    actions: 'build'
    configuration: 'Release'
    sdk: 'iphoneos'
    xcWorkspacePath: 'AheLine.xcworkspace'
    scheme: 'AHELine.UI'
    packageApp: true
    useXcpretty: false
    teamId: "65R5MW3X38" 
    exportOptions: 'specify'
    exportTeamId: "65R5MW3X38"
    exportMethod: 'app-store' // replace the method with accurate one
    signingOption: 'manual'
    signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
    provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
    provisioningProfileName: '$(provisioningProfileName)' // sets in https://gist.github.com/avatar-lavventura/070c935a0cb793a1547978e6cae1994d#file-pre-job-installappleprovisioningprofile-L223
    args: '-verbose'

Another option to generate and bypass plist directly to xcode as it might be the problem with xcode 14, see example here

@avatar-lavventura
Copy link
Author

avatar-lavventura commented Nov 5, 2024

For the first task you have share, I am getting the following error:

Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key "method": expected one of {}, but found development" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key "method": expected one of {}, but found development}

I have no idea where does development comes from ah and I don't know how can update it :(


And for the second task I am getting the following errors:

CreateBuildDescription
Build description signature: 3ff9e3912e0b9016ce41e79f86a68c1d
Build description path: /Users/runner/Library/Developer/Xcode/DerivedData/AheLine-eocxsujbdezrsvhigklxsrkfkjlq/Build/Intermediates.noindex/XCBuildData/3ff9e3912e0b9016ce41e79f86a68c1d.xcbuilddata

/Users/runner/Library/Developer/Xcode/DerivedData/AheLine-eocxsujbdezrsvhigklxsrkfkjlq/SourcePackages/checkouts/Down/Package.swift: error: Down_Down does not support provisioning profiles. Down_Down does not support provisioning profiles, but provisioning profile AheMobilProd has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'Down_Down' from project 'Down')
/Users/runner/work/1/s/AHELine.Data/AHELine.Data.xcodeproj: error: AHELine.Data does not support provisioning profiles. AHELine.Data does not support provisioning profiles, but provisioning profile AheMobilProd has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'AHELine.Data' from project 'AHELine.Data')
/Users/runner/work/1/s/Pods/Pods.xcodeproj: error: Pods-AHELine.UI does not support provisioning profiles. Pods-AHELine.UI does not support provisioning profiles, but provisioning profile AheMobilProd has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'Pods-AHELine.UI' from project 'Pods')
/Users/runner/Library/Developer/Xcode/DerivedData/AheLine-eocxsujbdezrsvhigklxsrkfkjlq/SourcePackages/checkouts/PhoneNumberKit/Package.swift: error: PhoneNumberKit_PhoneNumberKit does not support provisioning profiles. PhoneNumberKit_PhoneNumberKit does not support provisioning profiles, but provisioning profile AheMobilProd has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'PhoneNumberKit_PhoneNumberKit' from project 'PhoneNumberKit')
/Users/runner/work/1/s/AHELine.Common/AHELine.Common.xcodeproj: error: AHELine.Common does not support provisioning profiles. AHELine.Common does not support provisioning profiles, but provisioning profile AheMobilProd has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'AHELine.Common' from project 'AHELine.Common')
/Users/runner/Library/Developer/Xcode/DerivedData/AheLine-eocxsujbdezrsvhigklxsrkfkjlq/SourcePackages/checkouts/appcenter-sdk-apple/[email protected]: error: AppCenter_AppCenterDistribute does not support provisioning profiles. AppCenter_AppCenterDistribute does not support provisioning profiles, but provisioning profile AheMobilProd has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'AppCenter_AppCenterDistribute' from project 'AppCenter')
/Users/runner/work/1/s/Pods/Pods.xcodeproj: error: FlagPhoneNumber-FlagPhoneNumber does not support provisioning profiles. FlagPhoneNumber-FlagPhoneNumber does not support provisioning profiles, but provisioning profile AheMobilProd has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'FlagPhoneNumber-FlagPhoneNumber' from project 'Pods')
/Users/runner/work/1/s/AheLine.Robo/AheLine.Robo.xcodeproj: error: AheLine.Robo does not support provisioning profiles. AheLine.Robo does not support provisioning profiles, but provisioning profile AheMobilProd has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'AheLine.Robo' from project 'AheLine.Robo')
/Users/runner/work/1/s/Pods/Pods.xcodeproj: error: FlagPhoneNumber does not support provisioning profiles. FlagPhoneNumber does not support provisioning profiles, but provisioning profile AheMobilProd has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'FlagPhoneNumber' from project 'Pods')
** BUILD FAILED **

@DmitriiBobreshev
Copy link
Contributor

The development comes from exportMethod's input which is set to development by default when you set exportOptions == specify.
If exportOptions == auto it determinates automatically based on the provisioning profile.
For the second one, seems like your packages don't need provisioning profiles and need to specify to not sign during the build, something like this:

- task: Xcode@5
  inputs:
    actions: 'build'
    configuration: 'Release'
    sdk: 'iphoneos'
    xcWorkspacePath: 'AheLine.xcworkspace'
    scheme: 'AHELine.UI'
    packageApp: true
    useXcpretty: false
    teamId: "65R5MW3X38" 
    exportOptions: 'specify'
    exportTeamId: "65R5MW3X38"
    exportMethod: 'app-store' // replace the method with accurate one
    signingOption: 'manual'
    signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
    provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
    args: '-verbose CODE_SIGNING_ALLOWED=No CODE_SIGNING_REQUIRED=No -allowProvisioningUpdates SKIP_INSTALL=YES'

@avatar-lavventura
Copy link
Author

avatar-lavventura commented Nov 6, 2024

@DmitriiBobreshev Thank you very much, I highly appreciated your help. I will try the code you have shared for the second part and will let you know the results.

=> Hm for the first part I have net set exportOptions == specify though. Hence I can try the first part with exportOptions: 'auto' right?
=> Should I focus on to fix the errors on the second part rather than the first part? For the second parth chatgpt also recommended: CODE_SIGN_STYLE=Automatic in args could I also try that as well?

@avatar-lavventura
Copy link
Author

For the second one when I tried I get following error message :( : error: exportArchive: exportOptionsPlist error for key "method": expected one of {}, but found app-store. Do you think could it be fixed?

In detail:

** ARCHIVE SUCCEEDED **


/usr/libexec/PlistBuddy -c Clear _XcodeTaskExportOptions.plist
Unrecognized Type: 
File Doesn't Exist, Will Create: _XcodeTaskExportOptions.plist
Initializing Plist...
/usr/libexec/PlistBuddy -c Add teamID string 65R5MW3X38 _XcodeTaskExportOptions.plist
/usr/libexec/PlistBuddy -c Add method string app-store _XcodeTaskExportOptions.plist
/usr/bin/xcodebuild -exportArchive -archivePath /Users/runner/work/1/s/AHELine.UI.xcarchive -exportPath /Users/runner/work/1/s/output/iphoneos/Release -exportOptionsPlist _XcodeTaskExportOptions.plist
2024-11-06 10:03:47.879 xcodebuild[25675:83509] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/z0/m_s6x1rn5799ttl3khp8n86r0000gn/T/AHELine.UI_2024-11-06_10-03-47.872.xcdistributionlogs".
2024-11-06 10:03:48.078 xcodebuild[25675:83509] [MT] IDEDistribution: -[IDEDistributionMethodManager orderedDistributionMethodsForTask:archive:logAspect:]: Error = Error Domain=IDEDistributionMethodManagerErrorDomain Code=2 "Unknown Distribution Error" UserInfo={NSLocalizedDescription=Unknown Distribution Error}
error: exportArchive: exportOptionsPlist error for key "method": expected one of {}, but found app-store

Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key "method": expected one of {}, but found app-store" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key "method": expected one of {}, but found app-store}

** EXPORT FAILED **

@DmitriiBobreshev
Copy link
Contributor

I believe the second part is more promising, but feel free to try with the first one as it's might also work for you.
The error basically not related to the task directly but to xcode, app and your certificate/profile, because the task is basically wrapper for xcodebuild.

For the second step, the error tells that the export method app-store not the right one for your profile(as well as the development) and for the ceritificate, so you should check on apple portal for what method the profile and certificate issued (they also should be for simmilar exports e.g. ad-hoc or development) and past the correct value to the exportMethod's input.
If the method set correctly with the certificate and profile could you please share the complete log of these 3 steps with masked secrets (Xcode, InstallAppleProvisioningProfile, InstallAppleCertificate)?

@avatar-lavventura
Copy link
Author

I will try following remaining options one by one enterprise, ad-hoc, developer-id. Hopefully one of them would work and we would pass this step. Worst case if neither would work, what could we do as alternative?

Sorry I did not get what do you mean by masked secrets?

@DmitriiBobreshev
Copy link
Contributor

Some logs may contain sensitive info(e.g. passwords/service connection names/hashes), better to remove such data.
If nor of the options will work you need anyway check that the certificate suits profile(e.g. for example profile might be development and certificate is enterprise. So in that case you need to create certificate and profile which needed for your purpose(development/distribution/etc and profile for it)

@avatar-lavventura
Copy link
Author

@DmitriiBobreshev Sadly neither of them worked :-( I will try to access certificate file (currently I don't have it) to check inside of it. Is the profile the one ends with .p12?

@DmitriiBobreshev
Copy link
Contributor

@avatar-lavventura, no exactly, the certificate usually has .p12 extension, and .mobileprovision or .provisionprofile is for profile

@avatar-lavventura
Copy link
Author

avatar-lavventura commented Nov 7, 2024

I get access to profile( .mobileprovision) file. How can we understand the type of the profile whether is it development or enterprice or other type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work help wanted Task: Xcode
Projects
None yet
Development

No branches or pull requests

2 participants