Xamarin iOS app crashing immediately after launching

Se 21 Reputation points
2021-07-17T11:31:44.817+00:00

After updating XCode and Visual Studio 2019 to the latest versions, my Xamarin.Forms app shows the launch screen for about a tenth of a second, and then crashes when running on an iPhone (the simulator still works fine).

Looking at the device log, I am seeing this error when the crash happens:

Tag: kernel(AppleMobileFileIntegrity)
Message: Library Validation failed: Rejecting '/private/var/containers/Bundle/Application/.../MyAppiOS.app/libMyAppiOS.exe.dylib' (Team ID: none, platform: no) for process 'MyAppiOS(506)' (Team ID: ABC123XYZ, platform: no), reason: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed

Visual Studio Enterprise 16.10.3
Xamarin.iOS SDK 14.20.0.24

Any help would be appreciated. I haven't added any new third party libraries before this error began.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,349 questions
{count} votes

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.