sentry-dotnet: MAUI - IOS - Apple Store - Build rejected - Sentry contains bitcode
Package
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.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 16 (11 by maintainers)
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 😃