I use fastlane to handle initialization.
This is what I did:
match nuke development match nuke distribution
then in the strip I have this for each package. If I need to provide:
match(type: "development", app_identifier: "com.myCompany.myApp", force_for_new_devices: true)
When I want to download collateral, I have a strip that does this:
match(type: "development", app_identifier: "com.myCompany.myApp", readonly: true)
All this allows me to work and build perfectly on devices that were ALREADY on the portal during nuke.
How to update initialization correctly if I want to add a device?
I tried this:
match development --force_for_new_devices true -a com.myCompany.myApp
This does not work.
I get this error:
Provisioning profile '82afbd5b-9f19-4c78-b3ac-56a3565ce3f2' is not available on the Developer Portal
The only thing that works every time I have to add a device is to destroy everything and start a new one.
What is the correct way to add a device without the need for nuke?
I use xcode8, I turned off automatic provisioning, for example, suggested by fastlane.
source share