question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MAUI - IOS - Apple Store - Build rejected - Sentry contains bitcode

See original GitHub issue

Package

Sentry.Maui

.NET Version

6.0.402

SDK Version

3.22.0-preview.3

Steps to Reproduce

  1. Include Sentry in your MAUI project
  2. 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
  3. 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.

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
brustolincommented, Oct 31, 2022

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.

1reaction
legrignotincommented, Oct 28, 2022

@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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found