-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 #24819
Comments
Thanks a lot for your work. I would kindly ask you to provide XCode 16 support for .NET 8/MAUI. We need a break from updating and bug fixing. Please. .NET 8 is suppose to be supported until November 10, 2026 (https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core) |
We are currently validating Xcode 16 compatible builds for .NET 8 and .NET 9. Thanks for your patience as we complete that QA work. In the meantime, let me recommend that you verify all your tools and SDKs are compatible with a major OS release before you update your primary development environment. I also recommend you don't allow key things like macOS, Xcode, Android, etc. to auto-update, at least to major breaking versions. |
Currently I'm also facing same issue after I update Mac OS and Xcode 16. I'm unable to run the application.
|
The XCode 16 auto-update broke our ability to publish. Can we use the preview version of VS while we wait? It seems unreasonable - and I'd imagine some would say unacceptable - that you'd know there's a breaking change and advise "just wait until November." |
I did fix the sudden "Entitlements.plist" issue that occurred after realizing XCode had auto-updated. Simply added an Entitlements.plist file (with empty XML, not just empty) and build worked fine for debug. However, Publish ability is completely broken, regardless of which device I target, updated to iOS 18 or not. Microsoft's been very good about day-and-date support with Xamarin in the past - is that continuing with MAUI, please? :) |
And thanks Dave - I hope I'm not coming across as a ranter, friend :) |
Heads up - If you have Rider, you can target the previous XCode 15.4 and continue to build/publish apparently. Even on Sequoia. |
I was able to successfully downgrade to XCode 15.4 and build again. I'm still on Sonoma, though. Agreed about staying away from new macOS builds, as they limit your downgradability. |
Installing Xcode 15.4 workaround works... but still hot reload does not. Any workarounds to have hot reload up running again? |
On an iOS 18 device? Might need to stick with a 17.x device for now. Unless Preview supports it - but haven't tried. |
Both iOS 18 and 17, on simulator & real device. |
I am getting the following error: |
How do we solve the blank screen problem for users who updated their devices to IOS 18.0 version? |
I imagine if it hasn't been reported, report it, with full repro steps. I haven't had blank screens fyi. But I'm using a MAUI/Blazor Hybrid app. |
@jfversluis Not sure where this sits; however, the .NET for iOS team (xamarin-macios @dalexsoto) just pushed out Xcode 16 and iOS 18 support in dotnet workload set version 8.0.402.1. This breaks our pipelines that pull in the latest workload with linker errors.
Probably need a warning somewhere about sticking with workload set version 8.0.402. |
Hi all, for that simply invoke this command to open obsolete Xcode Same thing in Shakespeare form hereby In mine folly, I too hath been led astray and didst unwittingly upgrade mine macOS to Sequoia, whereupon none of the methods heretofore mentioned hath borne fruit. Alas, no solution was to be found! Thus, I did forsake my usual implements and took to Jetbrains Rider IDE. In sooth, I did install Xcode 15.4 in a separate chamber (folder, forsooth) and didst set the SDK path to that location. Behold! It doth work. The simulators now spring to life, and I can, at long last, partake in the sacred art of debugging. Yet, lo, I hath not yet tested upon the flesh and blood of real devices, for mine development environment lies in utter ruin, and I have squandered a full week's time in pursuit of resolution. Verily, thou must also adjust thy Xcode command line tools to the version 15.4. To do this, invoke the command that opens the elder Xcode. |
@dasunmax89 tried updating your workloads and running with xcode 16? They were updated today. |
@Cheesebaron wow. I need to try that. but my company officially purchased Jetbrains rider and I will go with that dude. |
Please see the update to the initial comment. Xcode 16 support for .NET 8 is out now! |
Seems like Rider EAP 2024.3 doesn't support it yet. Devices not detected: https://youtrack.jetbrains.com/issue/RIDER-118000/Refreshing-devices-not-working-with-Xcode-16 |
It seems to be running Ok on Rider 2024.2.5 |
@Cheesebaron Can you provide a |
A have same problem into Azure DevOps
|
For people on .NET 8.0.400 band (probably check the
We can see the workload set versions here and documentation here how it can be specified on |
You can also pin 8.0.402. The point release 8.0.402.1 breaks Xcode 15.4 used in pipelines. |
If you have upgraded 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 these steps:
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. |
@ronanj2 thank you. We are also facing same issue for iOS and macOS application while submitting the app to AppStore. Any one know how to fix the issue ? |
I know I've asked on Twitter but would appreciate any workarounds to allow us VS2022 users to install and use the XCode 16 support. Tried adding global.json but when the build host is paired and the .net workloads are installed, it seems to fallback
|
This is the {
"sdk": {
"version": "8.0.401",
"workloadVersion": "8.0.401.0",
"rollForward": "disable",
"allowPrerelease": false
}
} We've pinned the dotnet sdk & workload set to 8.0.401 as we haven't done any testing against 8.0.402. I did confirm that the same settings would work for 402 to pull in the correct iOS sdk version. To pull in the 17.5 ios sdk {
"sdk": {
"version": "8.0.402",
"workloadVersion": "8.0.402"
} To pull in the 18.0 ios sdk. {
"sdk": {
"version": "8.0.402",
"workloadVersion": "8.0.402.1"
} |
Are you using VS2022 to a remote mac build host ? |
No, we use rider on a mac for local development and a macOS-14 agent in azure Devops for our pipelines. This global.json configuration was not tested on a VS2022 windows environment as we have no developers on our team with that setup. |
Is there something I'm missing that clearly documents what the dependencies are of a specific workload version short of installing it and reading the output for what it pulls down? |
@jcmanke the sdk documentation refer to the package that contains the workload set information, we can open it and check the json inside that contains all the workloads versions (for instance using "Open in NuGet Package Explorer"). As far as I understand from other issue comments we may have a new command to display that information. I'm not sure if there is anything else besides installing a particular version and list the workloads after. I did compile a list of workload versions per workload set for 8.0.400 if that can be useful
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Any ideas when 17.11.5 might become available. Need to give some realistic timescales to management. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I think we're getting a bit sidetracked here. The initial support is out now and I think this issue now describes most scenarios and how to get into a working state. As such, I think we can close this one! Thanks everyone! |
After updating to Xcode 16 and trying to build my .NET MAUI iOS project (targeting net8.0-ios), I encountered an error during the publishing process when attempting to build for Release or Debug on a simulator. The error occurred while running the strip tool, which resulted in the following error message:
Steps taken:
Here’s the exact output from the build log showing the error:
Temporary Workaround:
Environment Details:
|
Several issues related to strip exit code 139. Good summary here: And some others, for cross reference links in github: |
Description below is copied from the .NET for iOS repository, please check that issue for the latest actual state.
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: