iphonexcodexcode10.1

How to resolve xcode 10.1 unable to launch app?


unable to launch app

My app runs on Iphone simulators and when I run my app on my actual Iphone7, installation seems to work.

However, running on Xcode while the phone is connected causes the error in this picture.

Also, the installed app on my phone does not run at all.

Can anyone help me get out of this?

Much thanks in advance :)


Solution

  • First of all, your iPhone and Xcode must either

    1. be updated to the latest firmware.

    or

    1. match each-other in versions.

    To clarify 2, if an iPhone is on iOS 12.1, Xcode should be on version 9.1. The number after the decimal matters the most. Your app won't work if your iPhone is on iOS 12.1 and Xcode is on 9.0!!

    Last but not least, trust the installed app by following these steps:

    Settings -> General -> Profiles & Device Management -> Company name -> Trust

    This way your app will run for sure on your iOS device! Peace!!