Azure Devops Pipelines - Xcode project with multiple provisioning profiles fails archive and sign











up vote
0
down vote

favorite












I'm new to DevOps so please go easy on me if I've missed something basic :)



I’m using the following in Azure Pipelines: Hosted MacOS with an Xcode Build Agent (Xcode Version 5.142.0)



I've just started trying to set up a pipeline for an Xcode based project which uses multiple provisioning profiles. In my scenario I have profiles for the following in my app:




  • Intents

  • ItentsUI

  • Widget

  • App


I've followed the instructions for setting up certs and provisioning profiles here (although my project uses automatic signing):
https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/mobile/app-signing?view=vsts&tabs=apple-install-during-build



These are being installed correctly to a hosted build agent (no errors) and the build is proceeding perfectly until signing.



During signing it seems that the none of the targets can find their provisioning profiles (both when using 'manual' and 'automatic' assignment).



Here's what is run in the logs:



[command]/usr/bin/xcodebuild -workspace /Users/vsts/agent/2.142.1/work/1/s/*MYAPP**.xcworkspace -scheme **MYAPP** archive -sdk iphoneos -configuration Release -archivePath /Users/vsts/agent/2.142.1/work/1/s/**MYAPP** CODE_SIGN_STYLE=Manual PROVISIONING_PROFILE= PROVISIONING_PROFILE_SPECIFIER= | /usr/local/bin/xcpretty --no-color



Then later when it comes to archiving the following occurs for each scheme:



error: "xxx Today Widget" requires a provisioning profile with the Push Notifications and App Groups features. Select a provisioning profile for the "Release" build configuration in the project editor. (in target 'xxx Today Widget')



A few questions:



1.) Is there an updated guide anyone can point me to? This seems like a common use case and I'm obviously missing something.



2.) Alternatively is there a way to force which profile gets used for which scheme when archiving and signing multiple schemes in the same build?



3.) Is automatic signing an option in pipelines?



For completeness I've seen what looks like a somewhat similar issue here: https://github.com/Microsoft/azure-pipelines-tasks/issues/964 but it's been closed for more than two years.



Thanks for taking a look guys!



Andrew










share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm new to DevOps so please go easy on me if I've missed something basic :)



    I’m using the following in Azure Pipelines: Hosted MacOS with an Xcode Build Agent (Xcode Version 5.142.0)



    I've just started trying to set up a pipeline for an Xcode based project which uses multiple provisioning profiles. In my scenario I have profiles for the following in my app:




    • Intents

    • ItentsUI

    • Widget

    • App


    I've followed the instructions for setting up certs and provisioning profiles here (although my project uses automatic signing):
    https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/mobile/app-signing?view=vsts&tabs=apple-install-during-build



    These are being installed correctly to a hosted build agent (no errors) and the build is proceeding perfectly until signing.



    During signing it seems that the none of the targets can find their provisioning profiles (both when using 'manual' and 'automatic' assignment).



    Here's what is run in the logs:



    [command]/usr/bin/xcodebuild -workspace /Users/vsts/agent/2.142.1/work/1/s/*MYAPP**.xcworkspace -scheme **MYAPP** archive -sdk iphoneos -configuration Release -archivePath /Users/vsts/agent/2.142.1/work/1/s/**MYAPP** CODE_SIGN_STYLE=Manual PROVISIONING_PROFILE= PROVISIONING_PROFILE_SPECIFIER= | /usr/local/bin/xcpretty --no-color



    Then later when it comes to archiving the following occurs for each scheme:



    error: "xxx Today Widget" requires a provisioning profile with the Push Notifications and App Groups features. Select a provisioning profile for the "Release" build configuration in the project editor. (in target 'xxx Today Widget')



    A few questions:



    1.) Is there an updated guide anyone can point me to? This seems like a common use case and I'm obviously missing something.



    2.) Alternatively is there a way to force which profile gets used for which scheme when archiving and signing multiple schemes in the same build?



    3.) Is automatic signing an option in pipelines?



    For completeness I've seen what looks like a somewhat similar issue here: https://github.com/Microsoft/azure-pipelines-tasks/issues/964 but it's been closed for more than two years.



    Thanks for taking a look guys!



    Andrew










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm new to DevOps so please go easy on me if I've missed something basic :)



      I’m using the following in Azure Pipelines: Hosted MacOS with an Xcode Build Agent (Xcode Version 5.142.0)



      I've just started trying to set up a pipeline for an Xcode based project which uses multiple provisioning profiles. In my scenario I have profiles for the following in my app:




      • Intents

      • ItentsUI

      • Widget

      • App


      I've followed the instructions for setting up certs and provisioning profiles here (although my project uses automatic signing):
      https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/mobile/app-signing?view=vsts&tabs=apple-install-during-build



      These are being installed correctly to a hosted build agent (no errors) and the build is proceeding perfectly until signing.



      During signing it seems that the none of the targets can find their provisioning profiles (both when using 'manual' and 'automatic' assignment).



      Here's what is run in the logs:



      [command]/usr/bin/xcodebuild -workspace /Users/vsts/agent/2.142.1/work/1/s/*MYAPP**.xcworkspace -scheme **MYAPP** archive -sdk iphoneos -configuration Release -archivePath /Users/vsts/agent/2.142.1/work/1/s/**MYAPP** CODE_SIGN_STYLE=Manual PROVISIONING_PROFILE= PROVISIONING_PROFILE_SPECIFIER= | /usr/local/bin/xcpretty --no-color



      Then later when it comes to archiving the following occurs for each scheme:



      error: "xxx Today Widget" requires a provisioning profile with the Push Notifications and App Groups features. Select a provisioning profile for the "Release" build configuration in the project editor. (in target 'xxx Today Widget')



      A few questions:



      1.) Is there an updated guide anyone can point me to? This seems like a common use case and I'm obviously missing something.



      2.) Alternatively is there a way to force which profile gets used for which scheme when archiving and signing multiple schemes in the same build?



      3.) Is automatic signing an option in pipelines?



      For completeness I've seen what looks like a somewhat similar issue here: https://github.com/Microsoft/azure-pipelines-tasks/issues/964 but it's been closed for more than two years.



      Thanks for taking a look guys!



      Andrew










      share|improve this question













      I'm new to DevOps so please go easy on me if I've missed something basic :)



      I’m using the following in Azure Pipelines: Hosted MacOS with an Xcode Build Agent (Xcode Version 5.142.0)



      I've just started trying to set up a pipeline for an Xcode based project which uses multiple provisioning profiles. In my scenario I have profiles for the following in my app:




      • Intents

      • ItentsUI

      • Widget

      • App


      I've followed the instructions for setting up certs and provisioning profiles here (although my project uses automatic signing):
      https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/mobile/app-signing?view=vsts&tabs=apple-install-during-build



      These are being installed correctly to a hosted build agent (no errors) and the build is proceeding perfectly until signing.



      During signing it seems that the none of the targets can find their provisioning profiles (both when using 'manual' and 'automatic' assignment).



      Here's what is run in the logs:



      [command]/usr/bin/xcodebuild -workspace /Users/vsts/agent/2.142.1/work/1/s/*MYAPP**.xcworkspace -scheme **MYAPP** archive -sdk iphoneos -configuration Release -archivePath /Users/vsts/agent/2.142.1/work/1/s/**MYAPP** CODE_SIGN_STYLE=Manual PROVISIONING_PROFILE= PROVISIONING_PROFILE_SPECIFIER= | /usr/local/bin/xcpretty --no-color



      Then later when it comes to archiving the following occurs for each scheme:



      error: "xxx Today Widget" requires a provisioning profile with the Push Notifications and App Groups features. Select a provisioning profile for the "Release" build configuration in the project editor. (in target 'xxx Today Widget')



      A few questions:



      1.) Is there an updated guide anyone can point me to? This seems like a common use case and I'm obviously missing something.



      2.) Alternatively is there a way to force which profile gets used for which scheme when archiving and signing multiple schemes in the same build?



      3.) Is automatic signing an option in pipelines?



      For completeness I've seen what looks like a somewhat similar issue here: https://github.com/Microsoft/azure-pipelines-tasks/issues/964 but it's been closed for more than two years.



      Thanks for taking a look guys!



      Andrew







      ios xcode azure-devops azure-pipelines






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 at 12:26









      Andrew Lombard

      212114




      212114
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          it turns out after closer inspection the development certificate I had been using was the wrong one (there were a few on my Mac). I swapped this for the appropriate version and the issues went away.



          I can now successfully build, archive and sign.



          Hopefully this helps someone.



          Andrew






          share|improve this answer





















          • Hi Andrew, I'm having a similar problem and am wondering if I can get more information on your setup. Do you only have one Xcode task? And do you have the Signing style set to Automatic or Manual for the Xcode task? Do you have a Install Apple provisioning profile task for every profile that you need (it looks like maybe four in your case) or did you just install all of the profiles manually on the build agent? Any help would be appreciated.
            – cmour
            Nov 14 at 17:07












          • @cmour I have one Xcode task and the signing style is set to "project defaults". I needed to install of the provisioning profiles used by the app yes (temporary keychain using secured storage on the default mac build agent).
            – Andrew Lombard
            Nov 14 at 17:38












          • Thanks @Andrew Lombard. Do you install the provisioning profiles using the "Install Apple Provisioning Profile" task in Azure Devops or did you just install the profiles on the build machine manually? I'm using the task in Azure Devops and I'm not having success with the build being able to find the profiles.
            – cmour
            Nov 19 at 17:16











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53225705%2fazure-devops-pipelines-xcode-project-with-multiple-provisioning-profiles-fails%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote



          accepted










          it turns out after closer inspection the development certificate I had been using was the wrong one (there were a few on my Mac). I swapped this for the appropriate version and the issues went away.



          I can now successfully build, archive and sign.



          Hopefully this helps someone.



          Andrew






          share|improve this answer





















          • Hi Andrew, I'm having a similar problem and am wondering if I can get more information on your setup. Do you only have one Xcode task? And do you have the Signing style set to Automatic or Manual for the Xcode task? Do you have a Install Apple provisioning profile task for every profile that you need (it looks like maybe four in your case) or did you just install all of the profiles manually on the build agent? Any help would be appreciated.
            – cmour
            Nov 14 at 17:07












          • @cmour I have one Xcode task and the signing style is set to "project defaults". I needed to install of the provisioning profiles used by the app yes (temporary keychain using secured storage on the default mac build agent).
            – Andrew Lombard
            Nov 14 at 17:38












          • Thanks @Andrew Lombard. Do you install the provisioning profiles using the "Install Apple Provisioning Profile" task in Azure Devops or did you just install the profiles on the build machine manually? I'm using the task in Azure Devops and I'm not having success with the build being able to find the profiles.
            – cmour
            Nov 19 at 17:16















          up vote
          0
          down vote



          accepted










          it turns out after closer inspection the development certificate I had been using was the wrong one (there were a few on my Mac). I swapped this for the appropriate version and the issues went away.



          I can now successfully build, archive and sign.



          Hopefully this helps someone.



          Andrew






          share|improve this answer





















          • Hi Andrew, I'm having a similar problem and am wondering if I can get more information on your setup. Do you only have one Xcode task? And do you have the Signing style set to Automatic or Manual for the Xcode task? Do you have a Install Apple provisioning profile task for every profile that you need (it looks like maybe four in your case) or did you just install all of the profiles manually on the build agent? Any help would be appreciated.
            – cmour
            Nov 14 at 17:07












          • @cmour I have one Xcode task and the signing style is set to "project defaults". I needed to install of the provisioning profiles used by the app yes (temporary keychain using secured storage on the default mac build agent).
            – Andrew Lombard
            Nov 14 at 17:38












          • Thanks @Andrew Lombard. Do you install the provisioning profiles using the "Install Apple Provisioning Profile" task in Azure Devops or did you just install the profiles on the build machine manually? I'm using the task in Azure Devops and I'm not having success with the build being able to find the profiles.
            – cmour
            Nov 19 at 17:16













          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          it turns out after closer inspection the development certificate I had been using was the wrong one (there were a few on my Mac). I swapped this for the appropriate version and the issues went away.



          I can now successfully build, archive and sign.



          Hopefully this helps someone.



          Andrew






          share|improve this answer












          it turns out after closer inspection the development certificate I had been using was the wrong one (there were a few on my Mac). I swapped this for the appropriate version and the issues went away.



          I can now successfully build, archive and sign.



          Hopefully this helps someone.



          Andrew







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 9 at 13:17









          Andrew Lombard

          212114




          212114












          • Hi Andrew, I'm having a similar problem and am wondering if I can get more information on your setup. Do you only have one Xcode task? And do you have the Signing style set to Automatic or Manual for the Xcode task? Do you have a Install Apple provisioning profile task for every profile that you need (it looks like maybe four in your case) or did you just install all of the profiles manually on the build agent? Any help would be appreciated.
            – cmour
            Nov 14 at 17:07












          • @cmour I have one Xcode task and the signing style is set to "project defaults". I needed to install of the provisioning profiles used by the app yes (temporary keychain using secured storage on the default mac build agent).
            – Andrew Lombard
            Nov 14 at 17:38












          • Thanks @Andrew Lombard. Do you install the provisioning profiles using the "Install Apple Provisioning Profile" task in Azure Devops or did you just install the profiles on the build machine manually? I'm using the task in Azure Devops and I'm not having success with the build being able to find the profiles.
            – cmour
            Nov 19 at 17:16


















          • Hi Andrew, I'm having a similar problem and am wondering if I can get more information on your setup. Do you only have one Xcode task? And do you have the Signing style set to Automatic or Manual for the Xcode task? Do you have a Install Apple provisioning profile task for every profile that you need (it looks like maybe four in your case) or did you just install all of the profiles manually on the build agent? Any help would be appreciated.
            – cmour
            Nov 14 at 17:07












          • @cmour I have one Xcode task and the signing style is set to "project defaults". I needed to install of the provisioning profiles used by the app yes (temporary keychain using secured storage on the default mac build agent).
            – Andrew Lombard
            Nov 14 at 17:38












          • Thanks @Andrew Lombard. Do you install the provisioning profiles using the "Install Apple Provisioning Profile" task in Azure Devops or did you just install the profiles on the build machine manually? I'm using the task in Azure Devops and I'm not having success with the build being able to find the profiles.
            – cmour
            Nov 19 at 17:16
















          Hi Andrew, I'm having a similar problem and am wondering if I can get more information on your setup. Do you only have one Xcode task? And do you have the Signing style set to Automatic or Manual for the Xcode task? Do you have a Install Apple provisioning profile task for every profile that you need (it looks like maybe four in your case) or did you just install all of the profiles manually on the build agent? Any help would be appreciated.
          – cmour
          Nov 14 at 17:07






          Hi Andrew, I'm having a similar problem and am wondering if I can get more information on your setup. Do you only have one Xcode task? And do you have the Signing style set to Automatic or Manual for the Xcode task? Do you have a Install Apple provisioning profile task for every profile that you need (it looks like maybe four in your case) or did you just install all of the profiles manually on the build agent? Any help would be appreciated.
          – cmour
          Nov 14 at 17:07














          @cmour I have one Xcode task and the signing style is set to "project defaults". I needed to install of the provisioning profiles used by the app yes (temporary keychain using secured storage on the default mac build agent).
          – Andrew Lombard
          Nov 14 at 17:38






          @cmour I have one Xcode task and the signing style is set to "project defaults". I needed to install of the provisioning profiles used by the app yes (temporary keychain using secured storage on the default mac build agent).
          – Andrew Lombard
          Nov 14 at 17:38














          Thanks @Andrew Lombard. Do you install the provisioning profiles using the "Install Apple Provisioning Profile" task in Azure Devops or did you just install the profiles on the build machine manually? I'm using the task in Azure Devops and I'm not having success with the build being able to find the profiles.
          – cmour
          Nov 19 at 17:16




          Thanks @Andrew Lombard. Do you install the provisioning profiles using the "Install Apple Provisioning Profile" task in Azure Devops or did you just install the profiles on the build machine manually? I'm using the task in Azure Devops and I'm not having success with the build being able to find the profiles.
          – cmour
          Nov 19 at 17:16


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53225705%2fazure-devops-pipelines-xcode-project-with-multiple-provisioning-profiles-fails%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Academy of Television Arts & Sciences

          L'Équipe

          1995 France bombings