Can not launch the app on device

后端 未结 11 1312
臣服心动
臣服心动 2021-02-07 14:47

When i try to launch my application from Xcode to the device, i get this error:

error: failed to launch \'/Users/Luca/Library/Developer/Xcode/DerivedData/myapp-b         


        
相关标签:
11条回答
  • 2021-02-07 15:08

    I encountered this problem when I tried to run my app on a device with an iOS version below the deployment target set in Target->Summary->Deployment Target. The deployment target was set to 6.0 and my device had iOS 5.1 . Changing the Deployment Target to 5.1 fixed it for me.

    0 讨论(0)
  • 2021-02-07 15:10

    Clean your application folder and rebuild it

    0 讨论(0)
  • 2021-02-07 15:10

    Cleaning, quiting XCode, relaunching XCode and recompiling helped me with an indentical issue.

    0 讨论(0)
  • 2021-02-07 15:19

    I too faced this problem. I tried with options which were listed above.

    But in my case problem was the device having iOS version 6.0 and the build target was set to 6.1. Version of simulator is iOS 6.1 so it is running on simulator but on phone it failed to install.

    After changing the build target version it executed and installed on device

    May this will help...

    --Avinash

    0 讨论(0)
  • 2021-02-07 15:19

    The only way I was able to fix this was to hard-boot my iPhone (hold down power and menu button until it powers off) and restart Xcode.

    0 讨论(0)
  • 2021-02-07 15:20

    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.

    It works without cleaning and device restarting.

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