App installation failed: Could not write to the device

前端 未结 30 1520
误落风尘
误落风尘 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:38

    Check your provision profile, maybe you are using the app store provision profile like me. I had to change the app store provision profile to development, now it's working.

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

    For anyone still facing this Issue:

    There are so many reasons and this is one of them as it happened to me.

    I've faced the same problem and I was connected wirelessly and If you are trying to install the application in wireless connecting mode (connected through same network), this might probably because of poor internet connection. Check your internet connection and try again, it works fine...

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

    Tried all of the above answers: Deleting the app, clearing storage space, cleaning the project...

    What finally worked was bumping the build number in info.plist (General > Build)

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

    Get rid of embedded libraries, dont' just throw it in there make sure it is embedded indeed.

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

    If you use your iPhone for debug, maybe, because your iPhone's storage space is less than your debug App.
    Clean your iPhone --- Real machine
    Clean your Mac --- Simulator

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

    Nothing helped me. I followed the below steps,

    1. Clean derived data folder
    2. Quit Xcode and disconnect device
    3. Restart Macbook
    4. Restart Device
    5. Open Xcode
    6. Clean and run the project

    Finally I got it working!!

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