iosxamarinvisual-studio-2022

How to solve error HE0004: Could not load the framework 'ContentDeliveryServices' in Visual Studio 2022


I have Visual Studio 17.5.3 installed on my PC with iOS version Xamarin.iOS and Xamarin.Mac SDK 16.2.0.5.

I am connected to a Mac that is running Ventura 13.3.1 with XCode 14.3.

When I attempt to deploy from Visual Studio on the PC, I get the following error:

error HE0004: Could not load the framework 'ContentDeliveryServices' (path: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/ContentDeliveryServices):

I believe this has to do with Visual Studio not being compatible with XCode 14.3 because I upgraded my Mac and this problem started happening, but I haven't yet out if this is 14.2 because the installation takes a long time.

I will be trying to install 14.2 to see if it solves it, but in the meantime (and for future readers) does anyone have a solution to this problem?

Note that HE0004 error does appear in other posts online, but I haven't yet found any that mention this specific file. They seem to mention DVTITunesSoftwareServiceFoundation, and the solution there has been to downgrade XCode as well.


Solution

  • You can install the package

    Xamarin.iOS 16.4.0.3.pkg

    To overwrite your Xamarin.iOs installation, and keep working with Xcode 14.3

    Doing this worked for me!