Failed to synchronize Xamarin.iOS SDK from the server...

I am getting the following error:

Xamarin.iOS SDK is required to build iOS software. Until the assemblies are successfully synchronized you will not be able to compile any iOS code
System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at MonoTouch.Tools.Utilities.ServerIO.Server_Post[TResponse](ServerIOState state, String command, MemoryStream ms, IDictionary`2 queryVariables)
at Mono.IOS.VisualStudio.Utilities.SdkStatus.Check()

I am using a MBP with Parallels 8 and Windows 8 Pro in the VM. I was on the beta (installed only in OSX) and thought that I had uninstalled it before installing production release.

Any pointers on where to look?

Thanks in advance,

Luke Lanphear
Meddling Idiot

Posts

  • ViniciusJarina.0630ViniciusJarina.0630 BRXamarin Team Xamurai

    Hello this error is from a old version of Xamarin.iOS for Visual Studio.

    Try to remove and get the latest version from

    https://store.xamarin.com/account/my/subscription/downloads

    Thank you.

  • Hi, I just completely removed all Xamarin products and re-downloaded the installer.
    I'm still getting that error:

    Failed to synchronize Xamarin.iOS SDK from the server (Build Server)
    Xamarin.iOS SDK is required to build iOS software. Until the assemblies are successfully synchronized you will not be able to compile any iOS codeSystem.Net.WebException: The remote server returned an error: (500) Internal Server Error. at System.Net.HttpWebRequest.GetResponse()

     at MonoTouch.Tools.Utilities.ServerIO.Server_Post[TResponse](ServerIOState state, String command, MemoryStream ms, IDictionary`2 queryVariables)
    
     at Mono.IOS.VisualStudio.Utilities.SdkStatus.Check()
    
  • josemiguel.torresjosemiguel.torres ESXamarin Team Xamurai

    Hi all,

    Could you guys share (or gist) the mtbserver.log you will find at ~/Library/Logs/Xamarin/MonoTouchVS?

    thanks,

  • ViniciusJarina.0630ViniciusJarina.0630 BRXamarin Team Xamurai

    Hello @ChrisvandeSteeg

    Can you try this?

    • Check if you have Xcode installed on /Applications/Xcode.app

    • Check if the Documentation of Xcode is installed.(http://screencast.com/t/f3Kku2iggDeY)

    • Check if this path exist on your Mac. (http://screencast.com/t/uO96fjK3fhY)

      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/
      
    • If is empty, create a symbolic link from DocSets (http://screencast.com/t/dmN00AYw9k)

      ~/Library/Developer/Shared/Documentation/
      
    • to

      /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets
      
  • LukeLanphearLukeLanphear USBeta ✭✭
    edited February 2013

    mine is here https://gist.github.com/jediware/95778f1ccc20ed4c2594

    And I do have the Xcode Documentation path...

  • ViniciusJarina.0630ViniciusJarina.0630 BRXamarin Team Xamurai

    @jediware

    What is the content of your folder

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets
    

    ?

  • LukeLanphearLukeLanphear USBeta ✭✭

    There is one file:

    com.apple.adc.documentation.AppleiOS6.0.iOSLibrary.docset

  • Same problem here. Unfortunately there were several issues like no activation since I don't have eth0. (Using link aggregation)
    After I fixed that issue, I registered and tried to link Visual Studio.
    I first had to pick an Xamarin.iOS Binding Project to get an activation dialog on Windows. (very strange)
    After that I picked my Mac from the Options.
    A couple of seconds later, a message was shown, that my iOS libraries are not in sync. I started the sync and had to restart Visual Studio.
    Unfortunately it did not work - now I'm seeing this error message.
    I also tried the approach with the XCode documentation. No Luck.

    My systems:

    • Mac OS X Mountain Lion 10.8.2
    • Windows 8 x64 with Visual Studio Professional (Inside Parallels Desktop 8)
  • Hi Jarina

    Can you try this?

    Check if you have Xcode installed on /Applications/Xcode.app

    Checked and ok

    Check if the Documentation of Xcode is installed.(http://screencast.com/t/f3Kku2iggDeY)

    Checked and installed

    Check if this path exist on your Mac. (http://screencast.com/t/uO96fjK3fhY)

    Checked and exists

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/
    If is empty, create a symbolic link from DocSets (http://screencast.com/t/dmN00AYw9k)

    Checked, exists and not empty

    ~/Library/Developer/Shared/Documentation/
    to

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets

  • LukeLanphearLukeLanphear USBeta ✭✭

    I uninstalled / reinstalled Xcode and it is now working.

    --Luke

  • Now I finally found a solution!

    I cleared the path
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Documentation

    So no docsets are in there.

    Then I restarted Visual Studio and switched to Options -> Xamarin iOS to connect to my Mac.
    Now I received the message that the library is outdated.
    And I did the update. (It will take a while since it downloads 660+ MB)

    I did a restart and got a problem with an existing hello world.
    I created a new project and kept an eye on the mac server log. Be patient till nothing changes on the server log.
    After everything was finished, I connected my iPhone to the build server => Started and it worked!!!!

    Hope this helps you too.

  • JonasStawskiJonasStawski USDeveloper Group Leader ✭✭

    @ThrostenWellnitz you are the man! I believe this happened because I cancelled the doc download as it was taking way too long!

Sign In or Register to comment.