Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library not loaded: @rpath/AppThinning.framework/Versions/A/AppThinning (Xcode 16) #24799

Closed
lszl84 opened this issue Sep 17, 2024 · 5 comments
Closed
Labels
t/bug Something isn't working

Comments

@lszl84
Copy link

lszl84 commented Sep 17, 2024

Description

Xcode 16 is now officially released and required for AppStore distribution

Screenshot 2024-09-17 at 10 48 01

However, after updating to Xcode 16, the MAUI apps stop building (VSCode, MacOS). I've read somewhere that Xcode support is planned for .NET 9, to be released in November. Does that mean we won't be able to publish MAUI apps for next few months?

-----------------------------------------------------------------------------
You may only use the Microsoft Visual Studio .NET/C/C++ Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you
develop and test your applications.
------------------------------------------------------------------------------
dlopen(/Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/IDEDistribution, 0x0001): Library not loaded: @rpath/AppThinning.framework/Versions/A/AppThinning

  Referenced from: <33FF2F3B-A96F-37B4-BA4E-887BD882BF9D> /Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/IDEDistribution

  Reason: tried: '/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_17.5/17.5.8030/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.net8.0_17.5/17.5.8030/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.net8.0_17.5/17.5.8030/tools/lib/mlaunch/mlaunch.app/Contents/MonoBundle/AppThinning.framework/Versions/A/AppThinning' (no such file)

        

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

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.82 SR8.2

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

None

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@lszl84 lszl84 added the t/bug Something isn't working label Sep 17, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@BrandanN21
Copy link

I was able to downgrade to Xcode 15.4 and continue developing with Net 8.

Our team was able to find this documentation on the Apple Developer website stating that the requirements for iOS App submissions is at a minimum developing with Xcode 15. Starting April 2025 it would be required to use the iOS 18 SDK (xcode 16).

Source 1: https://developer.apple.com/ios/submit/
Source 2: https://developer.apple.com/news/?id=utw4yhtp

I also turned off automatic updates for the app store so xcode won't update overnight with us knowing.

Hope this helps!

@BrandanN21
Copy link

BrandanN21 commented Sep 17, 2024

@lszl84 In case you need it you can install xcode 15.4 from this link: https://developer.apple.com/download/all/

Once it is installed you need to ensure that your command line tools point to 15.4 instead of 16. I am able to have both xcode 16 and 15.4 installed on my machine at the same time.

If you are on MacOS Sequoia already someone has posted a workaround for issues with that. xamarin/xamarin-macios#20802 (comment)

@tj-devel709
Copy link
Contributor

Thank you for the feedback @lszl84. As @BrandanN21 pointed out, there is a issue on the xamarin-macios repo tracking this issue already. Please refer to that thread there for further updates.

@Kremed
Copy link

Kremed commented Sep 17, 2024

@lszl84 In case you need it you can install xcode 15.4 from this link: https://developer.apple.com/download/all/

Once it is installed you need to ensure that your command line tools point to 15.4 instead of 16. I am able to have both xcode 16 and 15.4 installed on my machine at the same time.

If you are on MacOS Sequoia already someone has posted a workaround for issues with that. xamarin/xamarin-macios#20802 (comment)

My app has been rejected five times by the Apple App Review team, with a lot of unclear logs that seem to indicate crashes caused by some UI library or something similar. I released my app using Xcode 15.4. Could this be the reason for these rejections?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants