iOS Question Provisioning a second device [SOLVED]

Didier9

Well-Known Member
Licensed User
I am not clear on which part of the process I need to repeat to be able to use a second device for development.
I have a working setup with one device and that was painful enough to setup, I do not want to do anything that will break that...
So, of the steps described in this tutorial:
https://www.b4x.com/android/forum/threads/creating-a-certificate-and-provisioning-profile.45880/
which do I need to repeat for the second device? (it is not clear to me what steps are related to setting up the developer's account on the local machine and what steps are related to provisioning a particular device).
I have already added the second device to my Apple Developer's account on the Apple web site.
I use the remote (hosted) builder.
I understand I will have to do this other tutorial for the second device too once it is provisioned:
https://www.b4x.com/android/forum/threads/installing-b4i-bridge-and-debugging-first-app.45871/
 
Last edited:

tufanv

Expert
Licensed User
-get the udid of the second device ( visit udid.io from mobile device safari)
- install ca.pem from b4x.com/ca.pem from the mobile device
-add the udid to devices list from ios developer site ( https://developer.apple.com/)
- edit your current mobile provision file from the ios developer site add a checkmark to the new device while creating it
- use the updated provision file

I am not clear on which part of the process I need to repeat to be able to use a second device for development.
I have a working setup with one device and that was painful enough to setup, I do not want to do anything that will break that...
So, of the steps described in this tutorial:
https://www.b4x.com/android/forum/threads/creating-a-certificate-and-provisioning-profile.45880/
which do I need to repeat for the second device? (it is not clear to me what step is related to setting up the developer's account and what step is related to provisioning the device).
I have already added the second device to my Apple Developer's account on the Apple web site.
I understand I will have to do this other tutorial for the second device too once it is provisioned:
https://www.b4x.com/android/forum/threads/installing-b4i-bridge-and-debugging-first-app.45871/
 
Upvote 0

Didier9

Well-Known Member
Licensed User
- 1. get the udid of the second device ( visit udid.io from mobile device safari)
- 2. install ca.pem from b4x.com/ca.pem from the mobile device
- 3. add the udid to devices list from ios developer site ( https://developer.apple.com/)
- 4. edit your current mobile provision file from the ios developer site add a checkmark to the new device while creating it
- 5. use the updated provision file

Thanks for the quick reply.

1. Done

2. is one of the question I am uncertain about. From this tutorial:
B4X:
https://www.b4x.com/android/forum/threads/installing-b4i-bridge-and-debugging-first-app.45871/
it seems like the cap.pem is not required when using the hosted builder. Will it hurt anything if I do it anyways?

3. I have done that

4. Not 100% clear how to do that. There is no checkmark next to the device (I am in that page: https://developer.apple.com/account/ios/device/). If I click on a device, I have the option to disable it. At the moment, both are enabled. Is it what you mean?

5. How do I get an updated provision file and how do I "use" it?

For what it's worth, the iOs provisioning profile I created on the Apple web site has an asterisk, so I should be able to use it for any app. I have been able to use it for 2 different apps on my first device already, so that should be OK.
 
Upvote 0

tufanv

Expert
Licensed User
2 - it is needed for the device , not related to hosted server as I know. Do it , It wont hurt anything
4-you are at the wrong place. that is the debice list. click on development under provision profiles, click edit , you will see the devices with checkmarks
5- click download at the last stage , download the provision file. to use it , #ProvisionFile: name.mobileprovision change name with the provision name you use
Thanks for the quick reply.

1. Done

2. is one of the question I am uncertain about. From this tutorial:
B4X:
https://www.b4x.com/android/forum/threads/installing-b4i-bridge-and-debugging-first-app.45871/
it seems like the cap.pem is not required when using the hosted builder. Will it hurt anything if I do it anyways?

3. I have done that

4. Not 100% clear how to do that. There is no checkmark next to the device (I am in that page: https://developer.apple.com/account/ios/device/). If I click on a device, I have the option to disable it. At the moment, both are enabled. Is it what you mean?

5. How do I get an updated provision file and how do I "use" it?

For what it's worth, the iOs provisioning profile I created on the Apple web site has an asterisk, so I should be able to use it for any app. I have been able to use it for 2 different apps on my first device already, so that should be OK.
 
Upvote 0

Didier9

Well-Known Member
Licensed User
2 - it is needed for the device , not related to hosted server as I know. Do it , It wont hurt anything
OK, will do tonight (not in front of the development machine now)
4 - you are at the wrong place. That is the device list. Click on development under provision profiles, click edit , you will see the devices with checkmarks
I do not see anything (see screen shot), but that may be because I did not originally create a development profile, I created an iOS distribution profile since these apps will eventually have to be distributed via app store. That may have been the wrong choice but it's not like everything is particularly clear as to why you need one versus the other.

I do not want to break what I have working now, so I am not sure if I can (or need to) create a development profile in addition to the distribution profile. Considering what I have been able to do until now (develop and app and install it on the iPad in debug and release mode), I am not sure what additional capabilities a development profile would give me that I do not already have?
 

Attachments

  • Development profile.png
    Development profile.png
    55.3 KB · Views: 128
Upvote 0

tufanv

Expert
Licensed User
OK, will do tonight (not in front of the development machine now)

I do not see anything (see screen shot), but that may be because I did not originally create a development profile, I created an iOS distribution profile since these apps will eventually have to be distributed via app store. That may have been the wrong choice but it's not like everything is particularly clear as to why you need one versus the other.

I do not want to break what I have working now, so I am not sure if I can (or need to) create a development profile in addition to the distribution profile. Considering what I have been able to do until now (develop and app and install it on the iPad in debug and release mode), I am not sure what additional capabilities a development profile would give me that I do not already have?
you can use distribution certificate with development profile , so click + at the top right as seen in the screenshot and create a provision file for development.
 
Upvote 0

Didier9

Well-Known Member
Licensed User
OK, I went through the tutorial again, adding the iPhone, requesting a new certificate, named it default as described.
And tada! it is working! Thank you!
 
Upvote 0
Top