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 27, 2018 in DevOps & Agile by shubham
• 7,340 points
4,848 views

2 answers to this question.

+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 27, 2018 by ajs3033
• 7,300 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
• 52,350 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,700 points
7,583 views
0 votes
2 answers

How to build docker images using VS2017?

Open Visual Studio and create a new project. Select ASP.Net Core Web ...READ MORE

answered Aug 25, 2020 in DevOps & Agile by Pistle
• 1,000 points
1,392 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,059 views
+2 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,300 points
2,433 views
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,300 points
944 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP