Search code examples
xcodexcode15ios17

Xcode 15 iOS 17 error: Failed to install the app on the device


I am using Xcode 15.0.1 to build my iOS app. I'm using my physical device which is running iOS 17. When I try to run the app, a popup error says:

Failed to install the app on the device.

It was working fine previously but randomly showed up. I haven't been able to run the app on my test device since.


Solution

  • This seems to be an iOS 17 issue. The steps that worked for me:

    • Disconnect iPhone from Mac
    • On iPhone:
      • Settings > Developer > Clear Trusted Computers
      • Uninstall the application
    • Reconnect iPhone to Mac
    • In Xcode
      • Window > Devices & Simulators
      • You should see your device in the left sidebar
      • Re-pair the device