error HE0004: Could not load the framework 'IDEDistribution'

Cannot successfully compile and run iOS apps using Rider 2024.3 and .NET 8.x and 9.x when developing MAUI apps.  XCode 16.1 is installed, MacOS 15.1.1 (Intel), MacBook Pro 16" – XCode iOS emulators are installed.  When I run, I get the following error.  I've tried numerous things including building a MAUI App and a MAUI Multi-project App.  

When I select MacOS, it runs.  When I select Android, it runs in the emulator, when I select an iOS device, I get the error message below.

Is this a bug?  Is there a setting I must make?  Is this a Rider thing or a .NET 8.x and 9.x thing?  Is this an XCode thing?

Been all over google and ChatGPT – no solution.

error HE0004: Could not load the framework 'IDEDistribution' (path: /Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/IDEDistribution): 
dlopen(/Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/IDEDistribution, 0x0001): Library not loaded: @rpath/AppThinning.framework/Versions/A/AppThinning
 Referenced from: <18DE4B5B-BE44-3BC0-BD09-CD540F77FD55> /Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/IDEDistribution
 Reason: tried: '/Library/Frameworks/Xamarin.iOS.framework/Versions/16.4.0.23/lib/mlaunch/mlaunch.app/Contents/Frameworks/AppThinning.framework/Versions/A/AppThinning' (no such file), '/Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/Frameworks/AppThinning.framework/Versions/A/AppThinning' (no such file), '/Library/Frameworks/Xamarin.iOS.framework/Versions/16.4.0.23/lib/mlaunch/mlaunch.app/Contents/Frameworks/AppThinning.framework/Versions/A/AppThinning' (no such file), '/Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/Frameworks/AppThinning.framework/Versions/A/AppThinning' (no such file), '/Library/Frameworks/Xamarin.iOS.framework/Versions/16.4.0.23/lib/mlaunch/mlaunch.app/Contents/MonoBundle/AppThinning.framework/Versions/A/AppThinning' (no such file)
       
7
24 comments

The same issue here. Macbook M1 with xcode 16.1 and Rider 2024.3

2

Same issue in my case too. I have trying to figure it out for 3 days already. Tried different combinations of dotnet+maui, xamarin ios, xcode versions. Nothing helps.

1

Tried last resort - rollback to previous version of Rider. It helped.

Here is my configuration in case it's gonna help somebody else too.

MacOS: 15.1.1 (24B91)

dotnet: 8.0.403

maui: 8.0.83/8.0.100

Xamarin.iOS: 16.0.4.83

xCode: 16.1.0

Rider: 2024.2.7

It built, deployed and started my app with debugger attached.

0

Found this – helpful – sort of.  Looks like a patch for 2024.3 will fix this as noted at the end of the thread 1 day ago.

https://youtrack.jetbrains.com/issue/RIDER-117599

 

0

In my case I ended up with visual studio code as a debugger  for IOS. The rest can be handled by Rider. 

0

it was working fine for me until I updated to Rider 2024.3, now it wont run on iOS. one workaround is to run the app from VS Code using the MAUI extension.

0
Hello,

Thank you for reporting the issue. Jason is right, this is a known issue. We hope to deliver a fix with 2024.3.1.

Have a nice day!
2

That is a great news! Thanks!

0

Dmitry Kazantsev 

Can you give a timeline when 2024.3.1 will be released?

3

In my case, I can compile, but then I can't actually use the new build to debug with, but it is the same exact error.  I probably don't need to say it, but I will.  This is a really bad bug and we need a fix ASAP.

1
Hello,

While I can't confirm exact date for 2024.3.1 release, it is usually around a middle of December.

Have a nice day!
0

Dmitry Kazantsev 

Its terrible to read from you that Rider has effectively broken iOS development, but oh btw, we'll release a fix in month!  This version of Rider has effectively shutdown iOS development for users and subscribers (like me).

Awful, awful, awful.  I'd advise you to reach out to your team and ask them to release a patch for this ASAP (like today!).

1

Hello Jason,

I understand your concerns about the situation. Take my sincere apologies for any inconvenience caused by this. I did my best to bring team attention to this problem.

The fix is now available in the Nightly build. You can get it from the ToolBox app via Rider | … | Other Versions:

Have a nice day!

1

Dmitry Kazantsev,

We are blocked with iOS development for maui project. The Nightly build also not working. Can you provide the steps to solve this. 

Project - .Net7.0 

Xcode: 16.1

Rider: JetBrains Rider 2024.3 EAP 6 D

 

Showing below issue.

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7142/tools/bin/mlaunch --launchsim

 /Users/sandeep/ProjectsData/MobileApp/IQ.Mobile/bin/Debug/net7.0-ios/iossimulator-x64/IQ.Mobile.app --device=:v2:udid=7CCC523E-A1AB-4F78-9BEB-7D7AAE7D75E2 -sdk 17.0 --argument=-monodevelop-port --argument=10000 --setenv=__XAMARIN_DEBUG_PORT__=10000 --sdkroot /Applications/Xcode.app/Contents/Developer
error HE0004: Could not load the framework 'IDEDistribution' (path: /Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/IDEDistribution): 
dlopen(/Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/IDEDistribution, 0x0001): Library not loaded: @rpath/AppThinning.framework/Versions/A/AppThinning
 Referenced from: <92872593-91F4-31C4-86DF-8AB9691CAE03> /Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/IDEDistribution
 Reason: tried: '/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7142/tools/lib/mlaunch/mlaunch.app/Contents/Frameworks/AppThinning.framework/Versions/A/AppThinning' (no such file), '/Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/Frameworks/AppThinning.framework/Versions/A/AppThinning' (no such file), '/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7142/tools/lib/mlaunch/mlaunch.app/Contents/Frameworks/AppThinning.framework/Versions/A/AppThinning' (no such file), '/Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/Frameworks/AppThinning.framework/Versions/A/AppThinning' (no such file), '/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7142/tools/lib/mlaunch/mlaunch.app/Contents/MonoBundle/AppThinning.framework/Versions/A/AppThinning' (no such file)
       
 

 

 

0

Dmitry Kazantsev 

Hi, we tried the nightly build today unfortunately with the same result. (v. 243.22830)

1

Stanislav Mikes , I am sorry to hear that the Nightly build didn't help you. Would you mind submitting another issue to our tracker and attaching additional information as described below?

  • Go to Help | Diagnostic tools | Choose Trace Scenarios;
  • Enable the trace scenario for MultiPlatform;
  • Reproduce the issue;
  • Collect the full log bundle via Help | Collect Logs and Diagnostic Data;
  • Disable the trace scenarios enabled;
  • Upload the log bundle to our server and share the ID in the issue description.
  • Attach a screenshot that demonstrates the issue.

Sandeep Kumar ,

I am sorry to hear you are running this issue. I noticed you mentioned the Rider version as "JetBrains Rider 2024.3 EAP 6 D". Early-Access period has already been ended. Would you mind trying the Nightly version of Rider and verifying if the issue persists? Here is the instruction: SUPPORT-A-552 How to install Nightly build for Rider

Have a nice day!

0

Dmitry Kazantsev,

I have updated the rider and below is Rider version details and I'm facing same issue. No Luck. 

Note: I see the issue is getting with is .Net 7.0 MAUI project only.

 

JetBrains Rider 2024.3 EAP 6 D
Build #RD-243.23142, built on December 3, 2024
Runtime version: 21.0.5+8-b631.28 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit

 

0

Sandeep Kumar ,

Thank you for double-checking. This is indeed the actual Nightly build. Would you mind also submitting another issue as per the steps I described above?

0

With the nightly build #RD-243.23189 I solved my problem.

The problem only occurs running debug on IOS Simulator; no problem if I run the project with the Mac OS target.

My setup:

1) basic Maui Blazor Hybrid empty project create with the scaffolding

2) .Net 9.0.101

3) Macbook pro M2 Max Sequoia 15.1.1

0

E Zambrano , Do you still get the same error message Could not load the framework 'IDEDistribution' when trying to launch app in iOS simulator (in the latest Nightly build), or is there another error?
If you can't launch MAUI project with iOS target in the latest Nightly, would you mind submitting another issue to our tracker and attaching additional information as described below?

  • Go to Help | Diagnostic tools | Choose Trace Scenarios;
  • Enable the trace scenario for MultiPlatform;
  • Reproduce the issue;
  • Collect the full log bundle via Help | Collect Logs and Diagnostic Data;
  • Disable the trace scenarios enabled;
  • Upload the log bundle to our server and share the ID in the issue description.
  • Attach a screenshot that demonstrates the issue.
0

Dmitry Kazantsev My error is: “error HE0004: Could not load the framework 'ContentDeliveryServices'”

The error occurs only with release #RD-243.21565.191

With the Nightly Build, no problems occur.

0
Thank you for the clarification. I am glad to know the issue doesn't persist with 243.21565.191 build. Unfortunately, I have no other option to suggest except using to use Nightly build until the 2024.3.1 release.

Have a nice day!
0

I'm facing this issue when trying to run .Net iOS app on iPhone and simulator. Below are the configurations

JetBrains Rider 2024.3.3

XCode 16.2

MacOS - Sequoia 15.2 (24C101) , Macbook M3 Pro

0

I am also facing exact issue on JetBrains Rider 2024.3.3  / XCode 16.2 

This is extremely annoying 

we are not using Maui but Native .net “NET7.0-ios” 

0

Please sign in to leave a comment.