skip to Main Content

When I try to build my app I receive the following error:

Unable to find a profile type for platform iOS and purpose
development. You may need to reinstall Xcode.

Which I promptly did, but it does not fix the issue. Neither does cleaning build folder, rebooting, restarting, etc. Anybody encountered this before?

4

Answers


  1. Chosen as BEST ANSWER

    Found the answer myself. Was an issue of having 'Targeted device families' in the build settings set to iPhone, Mac, iPad. Set it to just iPhone and it works again.


  2. I fixed this by removing "Allow Multi-Platform Builds" in Build Settings.

    Login or Signup to reply.
  3. I got the same problem, it was building only on simulator and not in device. This happened after I installed a new package in SPM (SwiftLint).

    And this is what worked for me:

    1. Go to target
    2. Build Settings
    3. In "Build Options", set "Allow Multi-platforms Builds" to "No"
    Login or Signup to reply.
  4. For me it was even more rudimentary. I had selected an iOS device in the Scheme to build for, and switching to My Mac (in the top-middle toolbar) resolved this cryptic error.

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search