Can not launch the app on device

后端 未结 11 1462
臣服心动
臣服心动 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:24

    1. Disconnect your device.
    2. Delete the app from your device.
    3. Quit Xcode completely.
    4. Go to ~/Library/Developer/Xcode/DerivedData and look at the folders there ($ ls).
    5. Find the one with the app's name in front of it and delete the folder ($ rm -rf ).
    6. Reopen Xcode.
    7. Connect your device.
    8. Build and Run the app (cmd + R).
    9. Boom.

提交回复
热议问题