-
Notifications
You must be signed in to change notification settings - Fork 516
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
[META] Xcode 16.0 Support for .NET 8/9 and MAUI #20802
Comments
Any timeline estimated for Xcode 16.0 Support release ? |
The current plan (which may change at any point) is to do what we did last year: release Xcode 16.0 support with the new .NET version (so with .NET 9 this year). |
Does that mean November at the earliest? I made the unfortunate decision to install Sequoia beta and it does not support Xcode 15. So the question is whether I should consider reverting if Xcode 16 support is still a good 3 months away. |
Correct. |
|
That's the current plan.
We're working on releasing previews before November. |
Now that we have reached .NET 9 RC1 along with stable iOS 18, will there be a preview release for this soon? I currently get this error when try to run my .NET 9 RC1 project in Debug mode on iOS 17 & 18 physical devices on macOS Sequoia with Xcode 16:
|
Well, I think I updated without notification from macOS. Somehow I had automatic updates enabled, and I did not see this post before applying the update. I believe I need to rollback the macOS and XCode as well somehow 😢. Update |
@vhugogarcia You can downgrade your xcode version by installing it via the developer portal https://developer.apple.com/download/all/ and finding xcode 15.4 (or any other previous version you want installed). You can have multiple xcode installs at the same time. I have xcode 16 and 15.4 installed. You will just need to ensure that your pointing to the correct command line tools (15.4) in order to get the app building correctly. As for the MacOS downgrade I'm not sure the best way to do that. Hope that this helps a little bit! |
I have a workaround for the people who have upgraded to MacOS Sequoia. If you download the very first XCode 16 beta which was released on June 10th, it will work with MAUI and .NET 8 (and .NET 9 Preview). I have been using this setup for the past couple of months. Here is the link to download: |
Thanks @BrandanN21 for pointing it out. I was able to download the version 15.4 from the developer portal, and I'm able to run XCode in macOS Sequoia using the command line as shown below: I also checked XCode and I can confirm the command line version is selected correctly: However, on VS Code, when I try to run the app on the selected simulator I get the following error message: However, when I run dotnet workload list I get The launch.json only has this content:
Update: I noticed, I replaced XCode 16 with the one I downloaded. Let me install the version XCode 16 from app store and leave the other installed somehow. Update #2: I installd both versions of XCode and updated the commandlines and confirmed that we are using the right version of XCode by using xcode-select command in terminal, and the issue still persists. I'm not sure where exactly to look now hehehe! any hint or recommendation? |
@rolfbjarne I noticed that you merged this PR which I believe brings support for XCode 16 and macOS Sequoia. #21193 Do you think is there a way you can release maybe a preview of the macios SDK, so we can install it and test it as well? please 🙏🏻 |
@bpmccarty You're a life saver! |
for me i can see simulators on Windows Visual Studio but its not starting simulator like in a loop "Checking connection to simulator" "Conneting to pc Mac" "Conneted" and loop |
Not a great position. Can’t believe you’re recommending not upgrading to macOS 15! MS has known that it would be in this position for best part of 3 months - quite poor. Hopefully some way of SxS loading Xcode 15.4 will work. |
I have tried this solution without luck. I have installed Xcode 16 and XCode 16 Beta 1, should I uninstall the final version and just leave the Beta 1? |
As for me it also strange, because demo Flutter app work out the box on new MacOS Sequoia |
Same here, accidentally updated to Sequoia and now I'm lost... luckily my Macbook isn't updated yet, so at least I can debug iOS there. Hope to see a solution shortly. |
Exactly. They've had months to prepare, and this feels highly disrespectful to MAUI developers. It's surprising and disappointing to see this level of unprofessionalism from any company, let alone Microsoft. |
@rolfbjarne : This is unbelievable. Sequoia has been released, and XCode16 is out, but support for Maui isn't planned until November? Where are the good old days when Xamarin took pride in providing support for new versions the very next day? |
Everybody calm down and take a breath -- the solution is pretty simple if you've upgraded early (it's there if you read the comment thread). Apple isn't going to mandate apps built with Xcode16 until next year. Link to comment with solution: #20802 (comment) |
A Xamarin.Forms app might work on iOS 18, and you might be able to build a Xamarin.Forms app from the command line when using Xcode 16, but afaik Visual Studio for Mac is not able to launch/debug apps when using Xcode 16 / on an iOS 18 device. |
@rolfbjarne interesting what is the command? |
@rolfbjarne Сan I use Xcode 16 to run the application through debugger and emulators with ios version <18? If so, how, because at the moment, all the emulators are gone |
I haven't seen anything indicating that this isn't possible. Note that since Xamarin.iOS is not supported anymore, it may break (if it even works) at any point, and we won't fix it. To build from the command line:
To install on a device: VSMac uses an internal command-line tool called And then you can see Console.WriteLines in the Console app.
AFAIK no. |
Hello everyone, I have the same problem with launching a project, it won't build. Yesterday I updated MacOS to Sequoia 15, and the project stopped building on MAUI I'm new to using MacOS, I read all the above tips, but I'm confused |
Copy the AppThinning to the mlaunch app. (Here the rc.1 version) cd /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_17.5/17.5.9270-net9-rc1/tools/lib/mlaunch/mlaunch.app/Contents/
sudo mkdir Frameworks
sudo cp -r /Applications/Xcode.app/Contents/SharedFrameworks/AppThinning.framework ./Frameworks |
Thanks @trucidare! With .NET SDK 8.0.402 / iOS workload 18.0.8303/8.0.100, I was able to resolve the cd /Library/Frameworks/Xamarin.iOS.framework/Versions/16.4.0.23/lib/mlaunch/mlaunch.app/Contents
sudo mkdir Frameworks
sudo cp -r /Applications/Xcode.app/Contents/SharedFrameworks/AppThinning.framework ./Frameworks |
Thanks @trucidare and @crishoj for solving issue with "IDEDistribution". After your tip I was finally able to build and debug Xamarin Forms app on iOS simulator 18 using macOS Sequoia, Xcode 16.0, Visual Studio 17.11.4 and .NET SDK 8.0.402. |
.NET 9 RC2 is out,
EDIT: The issue was because of Signing Certificates, it now works with .NET 9 RC2. |
@MoienTajik Is it running in the simulator okey with .net 9 rc2? You only have the problem with running in ios Device? |
@last-Programmer Yes, it works fine on the Simulator. The problem is only with Physical iOS devices (both iOS 17 & 18). |
Hi, it works for visual studio preview version of windows and paired with mac |
I use Visual studio and pair to mac for the iOS simulator. With VS 17.11.4 I could run the simulator with xCode15.4 and macOS14 on my paired macMini. VS 17.11.5 bumped up the dotnet workload to include iOS18. Pair to Mac installs that workload when pairing. This forced me to update to xCode16 but then I hit other issues and had to add the iOS18 Simulator etc etc. I even updated to macOS15.
I get this error when I to run with the iOS17.5 or iOS18 simulators. Does anyone know what this means or what to do? |
Thanks guys, anyone tried with Visual Studio For Mac or build an Xamarin.Forms app with iOS 18, into a Mac machine? @Ashishkumar5699 Which version of Xamarin.iOS are you using for Visual Studio Preview that works with iOS 18? What am I missing? |
I have the same issue in an existing iOS project for .NET 8 (while I can run a new project). |
Today, without changing anything (at least on the code, the git status is empty), it started to work without raising this issue... weird, but at least now the app runs in debug on the simulator. |
Hi i had tried to run but for me it building the launching the Simulator but unable to install the application, |
Does it work on macOS Sequoia? I can't get it running ... I tried Xcode 16 beta, but the simulator connects and reconnects in a loop. Then I tried VS Preview (17.12.0 Preview 2.1) with Xcode 16 on macOS Sequoia (15.0.1) and .NET 9.0 (9.0.100-rc.2.24474.11) with the latest workload version (9.0.100-rc.2.24503.1). But he can't connect:
Has somebody a step by step guide? Or is the only option to downgrade the Mac? Update:
Update 2: |
I was able to resolve this by doing a clean solution (delete bin & obj folders)
Possibly some left over references not being handled properly from upgrading. |
I have updated xCode 15.4 to 16 and updated the maui workloads to 8.0.82 on the Mac. But since then, i get this error and have no clue why:
I have tried the following commands to fix this issue, but no luck:
Got message already installed. Then:
No luck. Then:
Also, i see this message poping up in the console:
but there is nothing to update. After this all i still got errors. No sure what is left. Any suggestions? |
The error message you are showing suggest, that the tools are not correctly installed. I'd suggest to start from the beginning. I got a .NET MAUI project running with the latest VS 2022 preview, latest workload and so on (see this post for more details). I had to clean the temporary folders as jdarwood007 mentioned. But my old Xamarin project doesn't work. There are no simulator shown at all ... |
That was my thought as well. I've been struggling for quite some time to get a stable system, and with every update, I encounter the same types of issues—there's always something. So today, I decided to reinstall the Mac from scratch and set everything up cleanly. I’m using xcodes.app to manage Xcode and brew to install the .NET SDK. I’ve also created all new certificates. I just completed my first build run in Visual Studio Code, and everything went smoothly with zero errors. Next step: building a release and publishing it to TestFlight. Still getting used to Visual Studio Code… #RIPVSForMac [EDIT]
Mhm i am not the only one ... #19157 |
This thread have been going on and on since many programmers have encountered the same problem. Have a look at my comment above. And I have actually published a release build to App Store under such conditions. Unfortunately the default UI behavior of Github issue is to hide items at the middle in which I have already provided a solution/workaround before the November magic 4 weeks away. Do a browser search "hidden items" and click "Load More" you will find the solution/workaround. |
Hello folks, now that Xcode 16 support is out in all of our release channels we will close this. Please if you encounter any problem do file a new issue or look at the known issues section in our release notes of the version of our product that you are using. On behalf of our entire team, thanks a lot for your patience, support and comments during this major release! |
The current plan is to release Xcode 16 support with .NET 8 soon and with .NET 9 in November (.NET 9 RC 2 will also contain Xcode 16 support).
The current stable version of our workload is not compatible with Xcode 16. We recommend against upgrading until we've released support for Xcode 16.
Warning
Xcode 15.4 does not support macOS 15 (Sequoia). This also means that we don't recommend upgrading your macOS development machines until we've released support for Xcode 16.
You can follow our progress here:
https://github.com/xamarin/xamarin-macios/wiki/xcode16.0-Bindings-Status
The text was updated successfully, but these errors were encountered: