-
Notifications
You must be signed in to change notification settings - Fork 4.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
[NativeAOT] App Store Connect warning ITMS-90999: Invalid executable #94655
Comments
From @rolfbjarne on Mon, 06 Nov 2023 09:46:15 GMT I've never seen that ITMS message before, and according to Google not many other people has either (https://developer.apple.com/forums/thread/740085 is the only other hit). Would you be able to attach/provide the .ipa you uploaded? |
From @tipa on Mon, 06 Nov 2023 10:41:02 GMT I sent you the .ipa file in a private message. Has Store submission of a NativeAot .ipa been tested by Microsoft? |
From @rolfbjarne on Mon, 06 Nov 2023 10:50:23 GMT
Thanks!
Yes, but we might have missed warnings. |
From @rolfbjarne on Mon, 06 Nov 2023 10:55:12 GMT I wonder if this is the reason:
This is an executable segment, but the @filipnavara any reason we can't put the |
From @filipnavara on Mon, 06 Nov 2023 12:20:13 GMT
The reason is that the Fixed number of the marshalled delegates fits into the pre-generated code/data table, and then it gets mapped again at a different memory location. The second mapping needs to a) use the same relative offsets between the code and the data, b) still needs the code part to have valid code signature. If Apple started blocking that we have a problem. I don't know on any method to ensure an executable layout that would allow the remapping. |
From @rolfbjarne on Mon, 06 Nov 2023 12:25:15 GMT
Isn't this what Mono has been doing for years (with no app store warnings)? |
From @filipnavara on Mon, 06 Nov 2023 12:35:05 GMT
I frankly have no idea. I think Mono may have some fixed limit... @lambdageek, any pointers how marshalled delegates are implemented on Mono/iOS? |
From @rolfbjarne on Mon, 06 Nov 2023 14:49:14 GMT This looks related: runtime/src/mono/mono/mini/aot-compiler.c Lines 2065 to 2081 in 6066de1
runtime/src/mono/mono/mini/aot-runtime.c Lines 5743 to 5764 in 6066de1
|
From @charlesroddie on Thu, 09 Nov 2023 18:41:11 GMT Also got this on uploading to testflight. Something new between dotnet8-rc1 and latest dotnet8. |
From @filipnavara on Sun, 12 Nov 2023 16:25:01 GMT The /cc @ivanpovazan |
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsFrom @tipa on Thu, 02 Nov 2023 18:59:22 GMT I read about the NativeAOT experimental feature here and wanted to give it a try right away. Steps to Reproduce
Expected BehaviorNo warning/error Actual BehaviorEmail from Apple:
Environment.NET8 RC2.1 Copied from original issue xamarin/xamarin-macios#19387
|
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger, @kotlarmilos Issue DetailsFrom @tipa on Thu, 02 Nov 2023 18:59:22 GMT I read about the NativeAOT experimental feature here and wanted to give it a try right away. Steps to Reproduce
Expected BehaviorNo warning/error Actual BehaviorEmail from Apple:
Environment.NET8 RC2.1 Copied from original issue xamarin/xamarin-macios#19387
|
Related to #82317 . cc @filipnavara |
We already discussed how to fix it. Ivan or I will probably take a stab at it. |
Is there a chance if a fix becomes available, it gets backported to 8.0.xxx? |
We will consider it once we have the fix in place and will update the issue accordingly. Thank you for understanding. |
From @tipa on Thu, 02 Nov 2023 18:59:22 GMT
I read about the NativeAOT experimental feature here and wanted to give it a try right away.
The app can be downloaded via TestFlight and is significantly smaller than before (with the Mono AOT) - awesome! I also don't see any functional issues
Steps to Reproduce
<PublishAot>true</PublishAot>
to .csprojdotnet publish
Expected Behavior
No warning/error
Actual Behavior
Email from Apple:
Environment
.NET8 RC2.1
Copied from original issue xamarin/xamarin-macios#19387
The text was updated successfully, but these errors were encountered: