maui: iOS app crashes using TestFlight

Description

My iOS App crashes on startup when I distribute it via TestFlight. It works fine when I publish it via Release mode from mac to an iPhone. I recorded my device logs via XCode and after the app crashes I receive the following error:

According to this person here https://developer.apple.com/forums/thread/669864 it could be a framework problem, when not all dependencies are archived in the final build. Since the build works fine in Release mode published from Visual Studio I don’t know how to fix or indicate further what causes this problem.

(Version is .NET 7.0, not available yet in dropdown)

Steps to Reproduce

  1. Create working iOS release
  2. Archive iOS package
  3. Distribute via TestFlight
  4. App crashes

Link to public reproduction project repository

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

tested with iOS 16

Did you find any workaround?

no

Relevant log output

`Unable to move topic <private>, This topic was not in the list provided! APSTopicListEnabled`

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 21 (5 by maintainers)

Most upvoted comments

@Ghevi i am getting that crash log after doing a build through CI/CD and uploading to TestFlight so the bin and obj directories are always fresh. I have also tried to use the interpreter and flags suggested by @borrmann but so far no solution i have tried has worked yet.