MAUI - IOS - Apple Store - Build rejected - Sentry contains bitcode
See original GitHub issuePackage
Sentry.Maui
.NET Version
6.0.402
SDK Version
3.22.0-preview.3
Steps to Reproduce
- Include Sentry in your MAUI project
- Build project as Release and sign it (in Azure DevOps pipeline)
- task: DotNetCoreCLI@2 displayName: 'Build and Sign IOS App' inputs: command: 'publish' publishWebProjects: false projects: '**/Mobile.csproj' arguments: '-f net6.0-ios -c $(BuildConfiguration) /p:ArchiveOnBuild=true /p:CodesignKey="$(AppleCodesignKey)" /p:CodesignProvision="$(AppleCodesignProvision)" -o $(build.artifactstagingdirectory)/ios/' zipAfterPublish: false modifyOutputPath: false
- Use Azure DevOps release to publish it to the AppStore (TestFlight) Microsoft Job used
Expected Result
The build appears in test flight without any error.
Actual Result
The pipeline show the following warning:
Waiting for the build to show up in the build list - this may take a few minutes (check your email for processing issues if this continues)
I got an e-mail with the following error:
ITMS-90482: Invalid Executable - The executable 'Mobile.app/Frameworks/Sentry.framework/Sentry' contains bitcode.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:16 (11 by maintainers)
Top Results From Across the Web
Serious issue with Dotnet MAUI iOS -- > Bitcode is ...
This occurs when releasing dotnet maui project to stores. It passes on transporter then later we will get a mail from app store...
Read more >MAUI .net 7.0 , App store submission failed bitcode issue ...
Description. The Apple App store rejected the Maui .net 7.0 App submission due to code containing bitcode.
Read more >Xcode setting ENABLE_BITCODE
The setting is located in Build Settings -> Build Options. In there is a setting called "Enable Bitcode", and you can set it...
Read more >Cannot deploy my .Net MAUI app on App Store
app /Frameworks/AppAuth.framework/AppAuth' contains bitcode. ITMS-90482: Invalid Executable - The executable 'MyApp.app/Frameworks/FBAEMKit.
Read more >Failed to create release build in iOS due to bitcode issue ...
NET7 MAUI project and try to create a release ipa to determine if it is related to this third-party package. Besides, you said...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @mattjohnsonpint we were receiving complains about our Carthage project not having bitcode enabled. Until Xcode 13, bitcode was enabled by default and all SDK versions had it enabled.
Xcode 14 disabled it, we had to manually turn it on to not introduce a breaking change. Unity project did not compile with Bitcode disabled, and old projects started to showing an annoying warning.
I didn’t know Apple was rejecting new projects with Bitcode enabled. So it looks like to solution is to disabled it and tell users to also disabled it.
@mattjohnsonpint I tried with the brand new 3.23.0-preview.3 and it works perfectly, I didn’t have to change anything (code or pipelines), the publishing was straight forward and the errors shows up in sentry web UI as expected! Thanks again for the quick answer and the help 😃