[iOS] Cannot publish MAUI app to Apple App Store #11465
Labels
area-publishing
Issues with the app packaging/publishing process (ipk/apk/msix/trimming)
platform/iOS 🍎
s/needs-info
Issue needs more info from the author
t/bug
Something isn't working
Milestone
Description
IPA app packages can be created with dotnet 7.0.100 command line build tools and uploaded to the Apple AppStore. Once a package has been uploaded it undergoes processing. An email is then sent to the Apple Developer team stating:
"ITMS-90482: Invalid Executable - The executable 'APPNAME.app/Frameworks/FirebaseCore.framework/FirebaseCore' contains bitcode."
for every nuget package I include in my project. This same problem occurred with the dotnet 6.0.x command line build tools however you could pass the parameter '-p:EnableAssemblyILStripping=true' to 'dotnet publish ...' and it would remove the bitcode (builds took around 30 minutes). It appears this property is not undertaking the same tasks in dotnet 7 and this causes an inability to publish IPAs to the App Store (kinda important).
Steps to Reproduce
dotnet publish -f:netX.0-ios -c:Release -p:EnableAssemblyILStripping=true
where X is any version supporting MAUI but using command line build tools for dotnet 7dotnet publish -f:netX.0-ios -c:Release -p:EnableAssemblyILStripping=true
againLink to public reproduction project repository
Standard project can be spun up quickly
Version with bug
7.0 (current)
Last version that worked well
6.0.400
Affected platforms
iOS
Affected platform versions
iOS All
Did you find any workaround?
Have tried a number of 'possibly' affecting properties in MSBuild / csproj file but none have the desired effect of stripping out bitcode from attached frameworks.
Relevant log output
The text was updated successfully, but these errors were encountered: