简体   繁体   中英

Xamarin.Ios App terminates while starting (in Simulator and iPhone) only stating “The App has been terminated”

I am developing a Xamarin App for Android and iOS on windows. For iOS compiling, I pair with a Mac Mini.

I was forced to update MacOS, XCode, VisualStudio for Mac and therefore Xamarin. On Windows I also updated from Visual Studio 2015 to 2017.

After the updates, Android version works still fine.

The iOS App pairs, compiles and provisions successfully, but whe the App starts (either on simulator or real device), it shows the launch screen and after a few seconds quits back to home screen. It even says "successfully launched" but then terminates

The only logs I get are:

  • "The app has been terminated" -> on windows, in Debug Window
  • "Service exited due to SIGABRT" -> on mac, in simulator log file

I searched the web and tried lots of stuff:

  • Delete obj and bin folders
  • Clean, Rebuild, Restart VS, Restart Mac, Restart PC, Restart....
  • Deleted all Provisioning Files and Certificates, recreated them
  • Used Automatic provisioning, used Manual provisioning
  • Debug and Release Configuration
  • iPhone Simulator and Real Device

Sadly nothing worked and I cannot get more info why this happens.

Does somebody have or had the same issue and found a solution? Do you have suggestion what more I can try?

I would really appreciate any help.

Thanks

Edit: As requested, a Screeshot of my build properties: 建立属性

I am having the same issue. Restarting the device seems to be the only thing that works, but it's unreasonable to have to restart the device every time I want to run the debugger.

So I finally solved the problem...

I created a new iOS-Project from scratch, added the existing Xamarin.Forms project and copied the files from the original iOS project one by one. I also downgraded all firebase plugins from 5.x versions to the highest 4.x versions and xamarin forms from 3.x to 2.5.x and now the app runs in the simulator and bundle signing works also.

Thanks for your help, I hope my answer will help anyone with similar issues

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM