-
Notifications
You must be signed in to change notification settings - Fork 510
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: https://download.developer.apple.com/Developer_Tools/Xcode_16_beta/Xcode_16_beta.xip |
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) |
Why so? It's pretty much available on https://developer.apple.com/download/applications/ |
These are the steps I used to get working in VS Code on Mac OS Sequoia 15.0 again. You can run MAUI apps against the new iOS 18 simulators after this as well: |
Thanks @BrandanN21, @rezamohamed, @rolfbjarne and all who helped me to solve my issue. I can confirm the issue has been fixed and I can continue debugging/developing mobile apps in .NET MAUI using:
I also went ahead and created a blog post article where I share my experience, I hope it helps others as well. https://dev.to/vhugogarcia/solving-net-maui-issues-on-macos-sequoia-with-visual-studio-code-and-xcode-16-3ljd |
@entdark Xcode 15 doesn't work on Sequioa, it requires you to update to Xcode 16 |
@rezamohamed It does work, you just can't launch it by clicking on the icon in Launchpad. You have to launch it from the command line. |
|
@asoliman1984 Go here: Xcode 15 version App —> Right click —> Show package contents —> Contents —> MacOS —> Xcode (Double click), That will open Xcode 15 |
Thanks @rezamohamed that works for me |
rezamohamed |
Haven’t reached the App Store deployment part yet. So that might be a different ball of wax. Can you try removing Xcode 16 and 16beta (it’s not merely just deleting the app from Applications but manually deleting a bunch of folders to restore it to a clean state with no Xcode - I asked ChatGPT for the steps). And then downloading Xcode 15.4 and running it via command line - I posted some steps above. Report back here if you were able to deploy to TestFlight/App store please. |
Could somebody from the development team make an official page of how to properly work around this so that people can keep developing .net for ios even though having an up to date OS version? I.e. a guide that works should you use VS, VS Code, Rider, etc. Thanks |
How do you install 15.4 in Sequoia? I'm getting this error after downloading To be honest I was expecting it. But since you say you could do it I'd like to know how. |
Instructions are already posted above |
managed to Open 15.4 and changed the command line tools to 15.4 but I still get the same error in VS code "maui:Build task not found". What im I missing? |
Thanks a lot @vhugogarcia I followed your blog post and managed to solve it. |
@vhugogarcia you should update your blog here: "Disable App Store automatic update" update to "Install xcodes for managing Xcode versions" Best thing I ever did when managing xcode versions, installing versions side by side and switching between these a breeze. |
I installed Xcode 15.4 & set the command line path to Xcode 15.4. But while archiving build it gave me an error "Launch images are deprecated in iOS 13.0. Use a launch storyboard or XIB instead."., which was not the case for previous archives. |
After switching to xcode 15.4 using xcodes and starting debugging my project in Rider, everything builds but after this message in the console, nothing happens: /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_17.5/17.5.9270-net9-rc1/tools/bin/mlaunch --launchsim /Users/johanfranzen/repo/N/NiOS/bin/Debug/net9.0-ios/iossimulator-arm64/NiOS.app --device=:v2:udid=A6A9B613-NNNN-NNNN-88D5-A1D38E6262BD -sdk 17.5 --argument=-monodevelop-port --argument=10000 --setenv=XAMARIN_DEBUG_PORT=10000 --sdkroot /Applications/Xcode-15.4.0.app/Contents/Developer Anybody had this problem and got past it? |
I also had this issue on Rider. Although it compiles & everything, it doesn't actually install the app inside the simulator. Only workaround i found was to drag & drop the .app inside of the simulator. |
I get the error: /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_17.5/17.5.8030/tools/msbuild/iOS/Xamarin.Shared.targets(473,3): error : Bundle Resource 'Strings/yggumve0.sso~' not found on disk Visual Studio Mac 2022 Tried with Xcode 15.4 and 16_Beta Can anyone help? I can't release a new version of my app |
A lot of my issues went away by creating a dev environment that has only one version of Xcode and not the multiple versions in parallel that I’m seeing folks use. It’s also one less variable to worry, to figure out if it’s a version mismatch issue. I did a complete uninstall of Xcode, all the Xcode folders, /library/developer, simulators, etc and only install Xcode 15.4 and 17.5 simulators on Sequoia, physical device with iOS 18 to test. Not saying this is the solution, just my $0.02 for piece of mind. |
Can anyone confirm this is still an option? When I go to the link I'm directed to "Unathorized. Your account can't access this page" |
Go here and scroll to the one you want |
If you open the link as a new tab it will start the download |
You might need a developer account to be able to download it.. Don't quote me on it though. |
I'm brand new to .net MAUI and, though I used Flutter in the past (for various platforms including ipad/ios), I'm struggling like hell to get a working environment for iPad on my M1 MBA for a MAUI app. I've probably spent around 8 hours messing about this crap. I must have followed the MS Tutorial 10 times. It's so easy to build and debug as far as that documentation is concerned. What BS. Now I find this post. I'm back to square one again. What a MESS!!! I'm supposed to be trialing this framework for future development. I was keen on it and wanted to get something running this weekend. But maybe we stick to Asp.net core and JS. I'm really unimpressed. Perhaps I can figure out how to run this 'hopefully' compatible XCode 16 beta, side by side (I'm Windows developer by default). Or I might rebuild this Mac completely. God knows I've nothing better to do with my weekend. Then I've got issues with provisioning profiles and crap that VSCode doesn't seem to want to solve for me. Perhaps VS would help address this, but no... thats not supported on Mac anymore. Let me waste more time... /end_rant |
Maybe this is the wrong place to ask this but, the main reason that I wanted MacOS working was just to prove that .net Maui is compatible with iPadOS as well as just iOS? I've not found documentation that suggests this, though I suspect ios encompasses iPadOS (at least in the context of the docs I've found). I need to prove that because any cross platform framework we could use must be deployable to iPad. If that is the case, then I can work on Windows for now and come back to Apple concerns later, when perhaps this is more stable. |
Short answer : YES |
Hi I had installed Xcode 16 beta and its install perfectly as I can see simulators in Visual studio.
|
The current plan is to release Xcode 16 support with .NET 9 in November.
The current stable version of our workload is not compatible with Xcode 16. We recommend against upgrading until .NET 9 is released.
Warning
Xcode 15.4 does not support macOS 15 (Sequoia). This also means that we don't recommend upgrading your macOS development machines until .NET 9.
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: