Forum Xamarin.Forms

Hot Restart Won't Deploy App on Xamarin form

Hello everyone,
Could you help my how to make it work on visual studio windows
this is all the steps on output view
Deploying app...
Starting Apple Service 'com.apple.mobile.installation_proxy'...
Stopping Apple Service 'com.apple.mobile.installation_proxy'...
Creating application ipa file: C:"*******************************"t.App.iOS.ipa
Starting Apple Service 'com.apple.afc'...
Uploading file '***********************************.App.iOS.ipa' to 'PublicStaging'...
Validating device directory 'PublicStaging'...
Creating file 'PublicStaging/com.**********' in 'PublicStaging'...
Writing content to file 'PublicStaging/************'...
Stopping Apple Service 'com.apple.afc'...
An error occurred while trying to deploy the app **********iOS.app'. Details: Error running hotrestart: 'An error occurred while deploying the application '*************.iOS.app' into '****** iPad'. Details: Could not write content to file 'PublicStaging/com*****'. ErrorCode: EmptyResponse'. Command: 'deploy -u=664516633019013aaa5bf6c959c936fdca114316 -i=com.*********.iOS.app'
2>Deploy failed. The app '***********iOS.app' could not be deployed to the device '***** iPad'. Please check the logs for more details.

Answers

  • ColeXColeX Member, Xamarin Team Xamurai
    edited January 14

    To use the hot restart feature you should have

    • Visual Studio 2019 version 16.5(or later)
    • iTunes (64-bit)
    • Apple Developer account and paid Apple Developer Program enrollment
    1. Then sign your apple account in Visual studio and iTunes .
    2. Use a 64-bit iOS devices(devices later than iPhone 5s) .
    3. Connect your device to Windows , and enable Deploy option on iOS .
    4. Delete bin and obj folders in iOS and Forms project .

    If problem persists , you can report the problem , check here .


    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

  • Danny_khreetDanny_khreet Member ✭✭
    Thanks for your reply
    I did all the steps correctly and i used hot Restart before with old versions of visual studio.
    Now i use last version of VS
    I tried delete bin obj folders
    I tried delete xamarin folder on temporary folder
    Restart Vs
    The app is generated correctly but after that say

    "Could not write content to file"
  • ColeXColeX Member, Xamarin Team Xamurai

    @Danny_khreet said:
    Thanks for your reply
    I did all the steps correctly and i used hot Restart before with old versions of visual studio.
    Now i use last version of VS
    I tried delete bin obj folders
    I tried delete xamarin folder on temporary folder
    Restart Vs
    The app is generated correctly but after that say

    "Could not write content to file"

    I test with Visual studio 16.8.2 , everything works fine .

    Consider raising issue on github : https://github.com/xamarin/Xamarin.Forms/issues
    Or reporting problem on Developer Community : https://docs.microsoft.com/en-us/visualstudio/ide/feedback-options?view=vs-2019#report-a-problem .

Sign In or Register to comment.