-
Notifications
You must be signed in to change notification settings - Fork 511
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) |
@dalexsoto thanks for the update. any idea about when .net 9 rc2 will be released? since .net 9 is already go live we have migrated our projects to .net9 rc. so waiting for this fix in .net 9 rc2. |
Thanks! Appreciated 🙏 I will pass along the kudos to the team! We would also not be here without you ALL amazing community! |
Hello, unfortunately we don’t have a date yet as we all are still working out the details for RC2 but it should be coming soon somewhere in October |
Hmmmm |
VsCode Version: 1.93.1 ERROR : but library/developer/Xcode/userdata/provisioning profiles folder found provision profiles key. I recreated the iOS certificate and key on the developer side. But I can't fix this error. What should I do to fix the error? Thank You All |
@vedatozkanTr download the profiles manually to mobiledata/provisioningprofiles directory |
If you still haven't managed to debug or deploy your project with xcode16, you can try these steps: (These steps worked for me)
|
I did everything you said. Workload version: 8.0.400-manifests.2772ffde dotnet --version When I try to run the project on the iOS simulator, it gives the following error. /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/tools/msbuild/iOS/Xamarin.Shared.targets(1835,3): error : The specified iOS provisioning profile '**********' could not be found then |
@vedatozkanTr just for curiosity, where is that folder located (full path) where you moved the provisioning profiles within MacOS? |
If you want to stick with XCode 15.x in your CI builds, just:
|
~/Library/Developer/Xcode/UserData/Provisioning Profiles |
Thank you |
If you happened to upgrade to xcode v16 and macos Sequoia 15, this is not the end of the world, before November when the magic may come. Don't run to such situation againBefore upgrading xCode, make sure checking https://github.com/dotnet/maui/wiki/Release-Versions since Visual Studio could be a few weeks or a few months behind the latest xCode. Remarks:
What you can do before NovemberYou can do local test with AdHoc profile though without debugging, and build with production profile, as long as you can pair with the mac, yes, VS 2022 v17.11.4 can pair with xcode v16 and macos Sequoia 15, even though in VS:
For testing, though without debugging, you can do:
Without debugging, it may not be good for new app development, or legacy apps with dirty codes, which need intensive debugging, often with simulators. Other than this, this workaround is just less ideal than the November magic. |
Good afternoon! After updating VIsual Studio for mac to version 17.6.14 and updating xcode to version 16, my Xamarin Forms app stopped seeing ios device simulators. Displays the following message: |
Bit edit, i was facing the unable to deploy to device issue. that was fixed by the above answer
After installing by drag and drop once in device, for the subsequence deployment works fine by connecting the debugger. |
The IPA File of my application? And how does this relate to Visual Studio for mac, why does it work this way? |
dotnet/maui#23380 Has this issue been addressed yet? |
Hello, does anyone here have a really functional guide on how to make a release build for MAUI Azure DevOps is also down, Microsoft changed MAUI Is it possible to make a release now? Errors everywhere with MAUI ios 18 :( Does anyone have a tried and tested working guide for an IPA file that can be built and signed? |
@pininfarino |
Hi, |
No, Visual Studio for Mac does not work with Xcode 16 (#21326). |
Thanks @rolfbjarne, |
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 |
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: