Xcode cannot run using the selected device

前端 未结 10 1305
刺人心
刺人心 2021-01-04 11:51

I am receiving the following error when I try to run my Xcode iOS project:

Xcode cannot run using the selected device. Choose a destination with a supported          


        
10条回答
  •  渐次进展
    2021-01-04 12:23

    • Clean up your project using Clean, Clean folders, Delete derived data.
    • Delete all schemes from 'manage schemes'. Recreate them, and build using any of them that contains a version of iPhone simulator (the one that worked earlier).

    If that doesn't work, try this:

    • Clean up your project using Clean, Clean folders, Delete derived data.
    • Using your favourite editor, try clearing all the profile strings from your project.pbxproj file (the one that you see when you open your xcode project using 'Show Package Contents' command).

    See below image - you must delete all lines containing 'Provisioning Profile' till the ; character.

    • Then restart xcode. Select the profile using automatic profile selector and build using an iphone simulator scheme.

    enter image description here

提交回复
热议问题