App crashes on physical device but works in simulator

-- -- 922 Reputation points
2023-09-12T16:56:39.7733333+00:00

Hi

App works in iPhone simulator from Visual Studio on mac. App also runs on local physical device from Visual Studio for pc (after using this hack https://gist.github.com/mattjohnsonpint/37d3ac06a563c41618fc933bf7282d66). However app crashes on physical device at start-up when deployed via Test Flight. Logs from both the physical device and test flight attached.

Any help would be appreciated.

Thanks

Regards

Device-Log-MyApp-2023-09-12-154933.ips-post-1.synced.txt

TestFlight-crashlog.crash-post-1.txt

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,417 questions
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,741 Reputation points Microsoft Vendor
    2023-09-20T04:54:37.7166667+00:00

    Hello,

    As -- -- said, your issue has been resolved

    "If a static resource is not declared but is used then it does not given error at design time or in debug mode on both iPhone simulator or on physical device. However, in release from TestFlight it crashes app. Best way seems to be to use a third party error logger to quickly catch such errors at runtime in release."

    (Refer to this issue- Missing StaticResource should throw exception also in Debug #15602)

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.