how to set different provisioning profiles for different targets using Xcode Build

+2 votes
I have one iOS app with several goals due to the implementation of the extension. I managed to install a provisioning profile using the xcodeBuild / Xcode Jenkins plugin for single targets.

How to set up different provisioning profiles for different targets using the Xcode build at a time?

how to accomplish this with Xcode build / Xcode Plugin of Jenkins or with any shell script
Mar 26, 2018 in DevOps & Agile by shubham
• 6,560 points

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+1 vote

For multiple targets, each task has to be done separately. And base the build (IPA) based on Xcode Schema File in xcode plugin.

And be sure to commit your code, set adhoc / appstore provisioning profile in your code signin according to your needs . After defining the provisioning profile for your desired env. commit your project.pbxproj.

And put your all provisioning profile under,

Users/Shared/jenkins/Library/MobileDevice/Provisioning Profiles

So, as your job running, it will automatically takes provisioning profile as per your Xcode Schema File name.

answered Mar 26, 2018 by ajs3033
• 7,080 points

edited Oct 16, 2018 by Kalgi
0 votes

You can add the provision profile by adding it to the XCode command line setting.

xcodebuild [whatever other options you have] PROVISIONING_PROFILE="[Your profile Unique ID here]"

Build Settings from the command line are supposed to override anything defined in the project or target.

answered Oct 16, 2018 by Kalgi
• 36,220 points

Related Questions In DevOps & Agile

+1 vote
3 answers
0 votes
1 answer

How to restart docker for windows using Powershell?

Try this: $processes = Get-Process "*docker for windows*" if ...READ MORE

answered Oct 23, 2018 in DevOps & Agile by Tyrion anex
• 8,280 points
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How to set up a VM with KVM/qemu without VitualBox using Vagrant

Start the vagrant box using: vagrant up --provider=kvm But ...READ MORE

answered Apr 11, 2018 in DevOps & Agile by ajs3033
• 7,080 points
0 votes
1 answer

unable to build .Net project using NUGet

you just need the developer pack for ...READ MORE

answered Apr 3, 2018 in DevOps & Agile by ajs3033
• 7,080 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.