Skip to content
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 15.3 Support for .NET 8 and MAUI #21057

Open
jfversluis opened this issue Mar 6, 2024 · 16 comments
Open

[META] Xcode 15.3 Support for .NET 8 and MAUI #21057

jfversluis opened this issue Mar 6, 2024 · 16 comments
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support

Comments

@jfversluis
Copy link
Member

jfversluis commented Mar 6, 2024

Below text is copied from the .NET for iOS repository (see here). TL;DR Xcode 15.3 is not supported at this time.


Hello!

Xcode 15.3 was released on March 5, 2024. We are in the process of updating our bindings and our infra in order to support this release.

As of the time of this post, Xcode 15.3 is not recommended to be used with our .NET MAUI or Xamarin SDKs so our advise is not to install it just yet and keep using Xcode 15.2 for the time being.

If you need to download Xcode 15.2 you can get it from the Apple Developer portal.

Known issues

iOS 17.4 Simulator crashes

Workaround: Use Xcode 15.2. If you really need to use Xcode 15.3 then either use iOS Simulator 17.2 or the workaround provided in dotnet/runtime#98941.


We'll keep this post updated as we learn more.

Thank you!

-The macios team (and .NET MAUI team 😄 )

@MitchBomcanhao
Copy link

this is highly necessary - a number of other issues make using 15.3 necessary (can't even debug the iOS app without it), but now it seems that a bunch of bits are entirely broken when using 15.3, in my case mostly around globalization.

@stephen-hawley
Copy link
Contributor

When this is fixed, please update .github/DEVELOPMENT.md so the dev guide doesn't contraindicate Xcode 15.3.

@Eilon Eilon added the area-setup Installation, setup, requirements, maui-check, workloads, platform support label Mar 29, 2024
@Phenek
Copy link

Phenek commented Apr 1, 2024

It should be great to have this informations on the .Net MAUI Output of visual studio code!
We already have Android sdk version displayed

Output:

Android components:
	- Java SDK (version: '11.0.22'): installed.
 
	Android SDK recommended required components:
	- platforms/android-34 (version: '3'): installed.
	- build-tools/34.0.0 (version: '34.0.0'): installed.
	- platform-tools (version: '35.0.1'): installed.
	- cmdline-tools/11.0 (version: '11.0'): installed.
 
	Android SDK recommended optional components:
	- emulator (version: '34.1.19'): installed.
	- system-images/android-34/google_apis/x86_64 (version: '8'): installed.
	- system-images/android-33/google_apis_playstore/x86_64 (version: '7'): installed.

We could add informations about Xcode/Android sdk compatibilities?
Orange or Red flag on versions, should inform us.
A link with the current issue to follow on github would be really appreciated!

@AOgai
Copy link

AOgai commented Apr 5, 2024

Hi,

installing Xcode 15.2 and using the simulator iOS 17.2 works great for debugging and local deployment.

However, uploading the app to the App Store fails the review process:

We were unable to review your app as it crashed on launch. We have attached detailed crash logs to help troubleshoot this issue.

Review device details:

  • Device type: iPhone 14 Pro
  • OS version: iOS 17.4

So I guess on the App Store they use a simulator with iOS 17.4, which then crashes.

Any help or ideas is appreciated.

Thank you
Arnold

@AndreKraemer
Copy link
Contributor

@AOgai, I'm curious, have you attempted to run a release build on your local emulator to see if it also crashes? It's worth investigating because crashes upon app launch often occur in release builds (but not in debug builds) when the interpreter isn't utilized. For further insights, you might want to check out these issues:

@AOgai
Copy link

AOgai commented Apr 8, 2024

@AOgai, I'm curious, have you attempted to run a release build on your local emulator to see if it also crashes? It's worth investigating because crashes upon app launch often occur in release builds (but not in debug builds) when the interpreter isn't utilized. For further insights, you might want to check out these issues:

@AndreKraemer:
Release build on emulator iOS 17.2 works fine.

Release build on emulator iOS 17.4 crashes with following message:

Xamarin-Simulator
UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. Table view: <_UIMoreListTableView: 0x111ae6200; frame = (0 0; 0 0); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x600000c8ae20>; backgroundColor = <UIDynamicSystemColor: 0x600001748f00; name = tableBackgroundColor>; layer = <CALayer: 0x6000005bbc60>; contentOffset: {0, 0}; contentSize: {0, 0}; adjustedContentInset: {0, 0, 0, 0}; dataSource: <UIMoreListController: 0x10d42e840>>

The interpreter workarounds didn't work for me.

What worked for me was adding this from Issue 98941:

<PropertyGroup>
	<_LibXamarinLinkMode>static</_LibXamarinLinkMode>
	<_LibMonoLinkMode>static</_LibMonoLinkMode>
</PropertyGroup>
<Target Name="_FixMonoLinkMode" AfterTargets="_MonoReadAvailableComponentsManifest">
	<ItemGroup>
		<_MonoRuntimeComponentLinking Remove="dynamic" />
		<_MonoRuntimeComponentLinking Include="static" RuntimeIdentifier="ios-arm64" />
		<_MonoRuntimeComponentLinking Include="static" RuntimeIdentifier="iossimulator-arm64" />
		<_MonoRuntimeComponentLinking Include="static" RuntimeIdentifier="iossimulator-x64" />
	</ItemGroup>
</Target>

Edit: I think <_MonoRuntimeComponentLinking Include="static" RuntimeIdentifier="ios-arm64" /> is maybe not needed.

@jdarwood007
Copy link

Edit: I think <_MonoRuntimeComponentLinking Include="static" RuntimeIdentifier="ios-arm64" /> is maybe not needed.

With that line included I receive the following error when trying to publish:

Value of _MonoRuntimeComponentLinking for 'ios-arm64' must be 'dynamic' or 'static' it is 'static;static'. Malformed runtime pack?

I had to remove that line to get it to publish.

@pierre01
Copy link

pierre01 commented Apr 13, 2024

Please Fix this ASAP!!
Updated: "Actually the fix involving changing the iOS emulator version to 17.2 was easy... and worked well"

@JoacimWall
Copy link

Hi
Use this one if you want to have multiple version of Xcode or just 2 minutes install instead of 30 minutes.

https://www.xcodes.app

//Joacim

@MitchBomcanhao
Copy link

MitchBomcanhao commented Apr 22, 2024

15.4 beta 1 has now been released for a few days. by the time whatever fix is done to get 15.3 supported, 15.4 or 15.5 or who knows which version will already be available and probably also not working.

@stemig

This comment was marked as off-topic.

@malsabi
Copy link

malsabi commented May 2, 2024

Is there any progress related to this issue ? Our production app does not work in 15.3 and users are complaining it's crashing.

@mattlovell

This comment was marked as off-topic.

@imuller
Copy link

imuller commented May 6, 2024

@jfversluis Can you give an update when this is available?

@jfversluis
Copy link
Member Author

@imuller subscribe to this issue and when it's closed there probably will be a comment with an update and then it will probably be available as well of have information when it will be!

@Richard-Starrtec
Copy link

Do we have an ETA on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support
Projects
None yet
Development

No branches or pull requests