Xcode will run app on simulator but not on device

前端 未结 16 2105
予麋鹿
予麋鹿 2020-12-13 05:57

I receive the following error when trying to run the app on my device.

error: failed to launch \'/Users/michael/Library/Developer/Xcode/DerivedData/Build/Pro         


        
16条回答
  •  Happy的楠姐
    2020-12-13 06:34

    For me restarting of Xcode, cleaning DerivedData and restaring device wasn't enough in most cases, until I had figured out that iTunes was also running, and after quitting iTunes everything worked fine!

    So my steps now are simple:

    1. Quit Xcode.
    2. If iTunes is running, quit iTunes.
    3. Reopen project.

    No need to remove app from the device, clean project or restart/disconnect device. I think that's because Xcode and iTunes use some common libraries (as you know, Xcode Installer always asks to quit iTunes on installing iOS SDK).

提交回复
热议问题