-
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 14.0 Support #15954
Comments
Hi @dalexsoto "Where is the definitive source of truth, a page that is kept up to date, indicating compatibility with Xcode?" Let's resolve the root issue which is the lack of documentation surrounding how to know whether it is safe to do any Xcode upgrade - i.e, a compatibility matrix between the Xamarin, and Xcode releases. Thanks for your time |
As of today for Xamarin packages the major version part matches the iOS version they are meant for, so for example xamarin.ios 16.x.x will be meant to be used with the iOS 16 SDK which is part of Xcode 14. But the true rule of thumb is that you will always want to use the latest Xcode release with the latest stable Xamarin provided by your Visual Studio. The only time it does not entirely apply is when Xcode has major releases where we are always a little behind because we get Xcode the same day as everyone else so we need some time to catch up and produce builds with the latest release. Thanks! |
Thank you for this information, I am really grateful to you that I am up and running again. I installed XCode 14 and the problems started. I have uninstalled 14 and installed 13.4.1 and it's all working fine. Touch wood. |
With option two I have error "failed to compile the generated registrar code" when I want to deploy to device with development provisioning profile. Anyone else have similar error? |
Yes, I do. But I guess it makes sense if your phone is still on iOS 15 as mine. I will update to iOS 16 and try it again |
Mine is on iOS 16 |
VS for Mac 17.3.5 with xamarin.ios-15.99.0.464 I get following build error: Relevant extract from the build log:
|
Happening for me aswell. |
Have the same issue |
+1 |
The +1 and "have same issue" comments are not valuable, use reactions at the opening post. |
+1 |
The Xamarin quickstart page is not accurate as of XCode 14's release: https://docs.microsoft.com/en-us/xamarin/ios/get-started/hello-ios/hello-ios-quickstart?pivots=macos#requirements
|
Is this for legacy Xamarin only? I did download & install that preview package but still getting an error when trying to compile my .NET6 (non-MAUI) iOS app.
Edit: ignore my comment, my problem is likely related to something else and not the Xcode update |
@dalexsoto, you closed linked #15946 issue based on this issue, depriving OP @Adam-Langley and many in the community of an answer to his important question: "Where is the definitive source of truth, a page that is kept up to date, indicating compatibility with Xcode?". Unlike this issue, which relates specifically to Xcode 14, @Adam-Langley seeks to answer a more fundamental question that continues to cost many developers countless hours of trial and error with each new Xcode release. Please re-open #15946, or provide some response here to his important inquiry: At any point in time, how can we determine the latest compatible Xcode version? |
@pm64 while I have my own notable remarks on Xamarin that I decided to keep silent at the moment, I do think that this was answered. Microsoft tries to support the latest version of XCode with the latest version of VS. As XCode may break this without any previous notice there is no practical way to inform people. They just try to issue update as soon as possible. That’s from me to save some time so that people can work now when they should work and not answer the questions. |
17.4.0 Preview 2.0 XCode 14 & xamarin.ios-15.99.0.464 build is ok on simulator. but error on device (iPhone 12 mini iOS 16):
|
Ah right, Apple removed the Background Assets framework from Xcode 14 and that build does not account for that just yet, the registrar errors will be gone in the next update. The other way you can workaround this is by setting the linker to Link SDK assemblies only, this should get rid of the registrar errors. |
@dalexsoto, GREAT!!!! Working on a real iPhone and the emulator, both with iOS 16 ✅ |
@dalexsoto Working fine for me too!! Thanks for the solution. |
My 2c on that. This tool isn't from MS (and probably isn't endorsed by them in any way) but for those wanting to easily manage, download, and keep multiple versions of Xcode side by side should check out Xcodes. Minor version increments of Xcode shouldn't break things, but when it does it is a pain to re-download, extract, etc. So it is super handy to keep them side by side and use this tool to select current active version. Then uninstall when you are happy with stability of the latest version. VS4Mac also jumps to the correct version of Xcode when you mark them as active within the app so you don't have to go touch that config either. |
One tip for developers: Ensure Automatic Updates is turned OFF within the App Store settings and NEVER actually update anything on your day to day machine until you can test it out completely on another machine/vm first. |
Hello, |
@EeKay I got tons of errors while installing cask xcodes :( I installed from the zip file directly. (here the Montemagno's video: https://www.youtube.com/watch?v=41h0xIKusT0 ) |
Thanks I'll mention this in my article too! (Also thanks to @Magic73 ) |
Anyway, it doesn't work to me. if I install two xcode packages, neither of them work. when I try to start one, it freezes and I have to close it forcibly. It doesn't matter which version I keep active. Xcode only starts working again if I uninstall one of the two versions. |
I get this when submitting to the App Store:
At this point I don't see any reason for this. I did have a similar problem when I had XCode beta installed, but I don't have it anymore and it worked properly when I uninstalled XCode beta. And searching some more it wasn't exactly the same error. I'll experiment some more but this looks to be Xamarin problem. |
I did successfully uploaded .ipa file with Watch app (and iOS companion app) created by Xcode. So it seems to be a bug in Xamarin. I see that you have removed bytecode and that the .ipa file is now significantly smaller, but maybe it doesn't work as expected... |
One warring thing is that I see in the App Center huge pile of these coming from my test device:
I don't think that those were crashing the app in use though they are indicated as crashes in AppCenter. Something like this has never happened before Xcode 14. It could be that this is related to the device connected to the debugger. But again this hasn't happened before and will probably be confusing to any developer. |
From Xcode 14.0 release notes:
@ivanicin this is related to Xcode 14 but can you please file a separate bug report and fill in the template for this? Looks like we will need to have a deeper look at this. |
@dalexsoto Since Apple released iOS 16 to the public, it would be better to not downgrade to Xcode 13. Please let us know when an update will be available for building .NET 7 rc1 + MAUI 7 rc1 + Xcode 14. Thanks! I got past the build error by following the instructions in dotnet/maui#10234 Currently this is the error that I am getting when running .NET 7 rc1 + MAUI 7 rc1 + Xcode 14:
|
I tried xamarin.ios 16.0. |
No, having the same issues, physical device does not work. |
Same issue, works only on simulators. |
FWIW I'm running on real devices - it did give me an error but when I looked at the "Deploying to device" tab it showed an error re provisioning. Once I'd fixed that (by creating an Xcode project using the same bundle id, signing identity and provisioning profile and then letting Xcode fix everything) it worked. I'm running Ventura, VS Version 17.3.5 (build 0), Xamarin.iOS Version: 16.0.0.72 - my iPhone is running 16.0.2 |
Can confirm @DamianMehers comment works, recreate the project in xcode with the same bundleid, restart your VSMac, it should deploy to your ios 16 device. With .NET 6 targetting. |
@DamianMehers this has worked for me without touching anything, but I had to create new provisional profiles as I had some new capabilities. So it is likely that just creating new provisional profiles is enough if that is easier. |
Failed. When I try to install from the enterprise app store, it starts downloading but after downloading and at time of install, it stops and shows a little cloud icon with a down(download) arrow before the app name, and when I tap on it, it shows an error as mentioned.
|
I Installed the 16.0 package pinned at the top. I'm also unable to see any simulator. Tips are very welcome, thanks |
Facing the same issue here |
xamarin.ios-16.0.0.72 works like a charm for me, I can now run my xamarin.ios app while still having Xcode 14 installed 😄 appreciate the work you guys put into getting this working, I do native ios development too, so worrying about juggling multiple xcode versions was going to be a hassle. |
The update is now available within VS for Mac. Big hugs to everybody that worked on that. For me, selecting iOS simulators worked immediately after the update but I could not deploy onto them.
The fix was indeed opening Xcode and telling it where its own command line tools are located. |
As you found out xamarin.ios-16.0.0.72 is now available in both Visual Studio for Mac and Visual Studio for Windows 17.3.5. Thanks a lot for your patience. I am closing and locking down this issue. The Xcode support for MAUI is still being worked out, I will open a separate issue to track this one. Again thanks everyone for your patience! |
🚨 Update 2⚠️
The Xcode 14.0 support to Xamarin.iOS is now available in the stable releases of Visual Studio for Widows and Mac. Please update to the latest stable versions of both.
Thank you for your patience!
The macios team!
Update 1
🚨 Update⚠️
Hello All!
We have what we believe is the final build for Xcode 14.0 Support
If you are currently using .NET MAUI you will need to wait a little longer in order to use Xcode 14, as for now we highly encourage you to download Xcode 13.4.1 from the downloads page in the Apple Developer Portal and continue to use it for now.
Thank you for your patience!
The macios team!
Update 0
Apple released Xcode 14.0 on September 12, 2022 we are working to get our Xcode 14 support release out in the meantime if you use Xamarin we recommend you to not upgrade to Xcode 14 just yet and keep using Xcode 13.4.1.If you updated to Xcode 14, you have 2 options:1. You can download Xcode 13.4.1 from the downloads page in the Apple Developer Portal and continue to use it.2. Use a build from our xcode14 branch, this is where our next stable release is coming out and it includes all the iOS 15 SDKs APIs, that said we are still ironing it out.*
xamarin.ios-15.99.0.464.pkgWe will keep this issue updated as we go to have the final builds declared.If you are currently using .NET MAUI you will need to wait a little longer in order to use Xcode 14, as for now we highly encourage you to use option 1 above.Thank you for your patience!The macios team!The text was updated successfully, but these errors were encountered: