Share via

Xamarin Forms iOS project runs in simulator but not in device

Shantimohan Elchuri 721 Reputation points
Jul 15, 2021, 8:18 PM

I have an app published in App Store and I have not modified any code. Actually before modifying code I wanted to run it once. It ran well in iPhone Xr simulator. No issues. But when I tried to run on my iPhone 6 it was crashing after the load. No messages. Nothing in Output window. Debug or Release nothing works. Deleted bin & obj folders and rebuilt the project but in vain.

Is it that iPhone 6 running iOS 12.x and the Xcode 12.5.1 not compatible? I was trying from VS 2019 ver 16.10.3.

As per this StackOverflow thread I checked and every code behind had XamlCompilation attribute set at the beginning of the code.

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

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,331 Reputation points Microsoft External Staff
    Jul 22, 2021, 4:00 AM

    Hello,
    Welcome to our Microsoft Q&A platform!
    There is a similar issue. It caused by incremental builds, you can try to close incremental builds. For more information you can refer to
    https://stackoverflow.com/questions/68101464/xamarin-ios-app-crashing-with-error-dyld-library-not-loaded-mapped-file-has-no
    116889-image.png

    Best Regards,
    Wenyan Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Shantimohan Elchuri 721 Reputation points
    Jul 21, 2021, 4:04 PM

    @Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) Here is the screenshot of the device log fetched from Xcode.
    117342-image.png

    iOS Build and iOS Bundle Signing tabs of the iOS Project Properties are shown below.
    117381-image.png

    117362-image.png

    I don't find any issue with these settings as they are similar to other projects under development.

    But one thing is noted: Though I don't have another iPhone readily available to test, I get the issue with only the app that has been published to App Store. I have only one app published. All other apps that are not published are running find in my iPhone 6.

    0 comments No comments

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.