App installation failed: Could not write to the device

前端 未结 30 1388
误落风尘
误落风尘 2021-02-04 23:07

In Xcode 6.3, I got this error when trying to run an iOS project written in Swift on a real device.

App installation failed

c

相关标签:
30条回答
  • 2021-02-04 23:20

    My issue was an embedded framework.

    Go to "Build Phases" -> "Embed Frameworks" -> Check "Copy only when installing", and it got rid of the issue for me.

    0 讨论(0)
  • 2021-02-04 23:20

    I was having the same error, i just deleted the project and fixed!

    Go to Window -> Project and right click, and remove from projects!

    0 讨论(0)
  • 2021-02-04 23:20

    One reason this can happen is if your app bundle contains broken symlinks.

    0 讨论(0)
  • 2021-02-04 23:24

    For me the following did not work on iOS 11 beta 10, XCode 9 beta 6:

    • Restart the device
    • Deleting the app from the device
    • No symlinks were in the project
    • There was plenty of storage available

    Deleted Derived Data and voilá, it worked again

    0 讨论(0)
  • 2021-02-04 23:24

    In the case of your device have an app with the same bundle identifier, Xcode will throw this error. Try to delete potential app with the same bundle identifier.

    0 讨论(0)
  • 2021-02-04 23:24

    Also this the error shown if your machine running Xcode is low on space.

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