Xamarin iOS Simulator running old code

前端 未结 7 1056
挽巷
挽巷 2021-01-02 09:21

When I debug my Xamarin.iOS project from Visual Studio, it builds, installs on the simulator, and launches the app without issue. But on launching, I\'m seeing a bunch of D

相关标签:
7条回答
  • 2021-01-02 10:06

    In my case I had to enable all architectures:

    • Android project properties
    • Andrid Oprions
    • Section Anvanced Tab
    • Select all architectures and rebuild
    0 讨论(0)
  • 2021-01-02 10:10

    I had a similar problem (though on an Android emulator).

    What didn't work for me:

    • restarting the computer
    • restarting Visual Studio
    • deleting bin / obj folders
    • going into Configuration Manager (Debug / Release / Configuration Manager) and ticking everything there - everything was ticked
    • changing the version of the app in the manifest

    What worked for me?

    Uninstalling the app from the emulator and then running Debug again. It was an Android emulator, so I uninstalled by clicking on the app icon and holidng for long, and then dragging it to "Uninstall App". On an iOS simulator it should be similar.

    0 讨论(0)
  • 2021-01-02 10:11

    In your project folder delete the bin and obj folders. This works for me but is still annoying.

    0 讨论(0)
  • 2021-01-02 10:16

    I still have this problem with iOS simulators. My solution:

    1. Unload the iOS project
    2. Reload the iOS project
    3. Build as usual

    I do the above when I change simulator device.

    0 讨论(0)
  • 2021-01-02 10:18

    Check your Configuration Manager (the drop down with Debug, Release etc) and check that all the projects are being built. It usually unchecks all the projects you are working with for some unknown reason.

    This means that it isn't rebuilding all the projects and it hence shows an old version.

    As per your comment of rebuilding each project, this is a classic sign of the projects not being checked to be built on run and why you have to do it manually.

    0 讨论(0)
  • 2021-01-02 10:20

    Well this worked with my Android project suffering from the same issue:

    1. Right click on Android project then select "Properties".
    2. Select "Android Options" then "Packaging".
    3. Un-check the "Use Shared Runtime" options.

    then it worked normally

    0 讨论(0)
提交回复
热议问题