Episode 33: iOS Auto Provisioning Awesomeness with Oleg

Sign in to queue

The Discussion

  • User profile image
    evgeniypaka​lo

    Thanks, looks awesome!

  • User profile image
    Steve

    Hey guys!

    I am working on a forms project and I've selected the iOS project along with Debug|iPhone in the toolbar. My device list only shows the list of Simulators.

    For the life of me I cannot get my physical devices to appear in the device list when debugging. I'm working on Mac, have the latest Alpha installed. I have tried both methods (manual and automatic) provisioning, however neither seem to work for me. Can you think of any reason my device would not appear, even though it displays the correct Signing Certificate and Provisioning Profile in the options?

    Steve

  • User profile image
    CMydur

    Im getting the following error

    Automatic signing failed: Cannot cast Newtonsoft.Json.Linq.JArray to Newtonsoft.Json.Linq.JToken.

    Can you help ?

  • User profile image
    Oldemche

    @CMydur:

    Thanks for your report in Bugzilla. Please provide necessary information I requested in comments.  

  • User profile image
    Oldemche

    @Steve:

    Off the top of my head I can recommend checking at least two things:

    • Make sure that deployment target of your iOS application in Info.plist is less or equal than the version of iOS installed on your phone. As you can see in the video I bumped into this exact problem demoing provisioning for tvOS device. Once I dropped deployment target in Info.plist the device appeared in the Debug|iPhone dropdown.
    • Make sure that your device is trusted and enabled for development.
  • User profile image
    mstarlingc

    Insanely simple!, Thanks for share!

  • User profile image
    scottkdavis

    I can't find any information anywhere on how to make this work with Distribution certificates and profiles.  Every time visual studio "automatically" updates the provisioning profile (developer) it corrupts (makes invalid) the distribution profiles on developer.apple.com. Now I can't create AdHoc or AppStore distributions.   Developer provisioning seems to work as advertised, but it is breaking my distributions.

    This also has no advice for managing your distribution profiles when this feature is enabled in Visual Studio. https://developer.xamarin.com/guides/ios/getting_started/installation/device_provisioning/automatic-provisioning/

  • User profile image
    LeonP

    Also having the same issue as scottkdavis with not being able to distribute via an adhoc profile anymore.  And any adhoc profile manually created on the portal is rendered invalid when auto-provisioning...

    Also how do we use a device in a distribution profile which isn't physically available?  If the device is registered in the Apple portal how would we include it in the adhoc distribution profile?  Will it use all registered devices on the portal?

    So can't do distribution profiles anymore. Help? 

  • User profile image
    Oldemche

    @LeonP @scottkdavis

    Could you file a ticket on Developer Community Website augmented with reproduction steps, environment info (OS version, IDE version etc.), and the IDE log?

  • User profile image
    Michel Moorlag

    I have installed fastlane and it does work very nice if you have the physical devices available. What steps do I need to take if I want to add the udid of a friends device that is not physically available until rebuilding the app again?

  • User profile image
    James​Montemagno

    @Michel Moorlag: If you register the UUID in the portal then you can uncheck and re-check and it should generate a new profile for you. Or you could download it manually as well.

  • User profile image
    Michel Moorlag

    Thank you James, unchecking and checking does work.
    If you start developing this is a nice feature but further down the road we need more control. When I check this checkbox all my profiles start using the development provisioning. For my adhoc and store I would like to use the distribution certificate/provisioning. The only way to get this done is by unchecking the checkbox. Second I have no insight in which devices are provisioned. What if I want to remove a device of a colleague who left the company? Third is that I prefer vs for windows. It would be nice if we have the same feature in vs for windows too. So for now I will go back to manual and once you understand it is not that complicated. But don't get me wrong, it is a very good start and if we get a little bit more control I surely will be using this feature in the future. Thank you

  • User profile image
    nhwilly

    I'm developing on VS for PC, not for Mac.  Is there an equivalent process if I'm not using VS for Mac?   I see some bits in the project properties, but I'm not sure how automatic it all is.

    Super jealous of this feature.  

    TIA

Add Your 2 Cents