runtime: [NativeAOT] App Store Connect warning ITMS-90999: Invalid executable

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

  1. Add <PublishAot>true</PublishAot> to .csproj
  2. dotnet publish
  3. Upload resulting .ipa to App Store Connect

Expected Behavior

No warning/error

Actual Behavior

Email from Apple:

We identified one or more issues with a recent delivery for your app, "MyApp" 1.0.0 (1.0.0). Your delivery was successful, but you may wish to correct the following issues in your next delivery: 
ITMS-90999: Invalid executable - The executable in “MyApp.iOS.app” contains multiple segments with the executable permission bit set when it should only contain one. 
After you’ve corrected the issues, you can upload a new binary to App Store Connect. 

Environment

.NET8 RC2.1

Copied from original issue xamarin/xamarin-macios#19387

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Comments: 16 (16 by maintainers)

Most upvoted comments

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.

Related to #82317 . cc @filipnavara