Skip to content

Instantly share code, notes, and snippets.

@slgraff
Last active February 25, 2020 20:43
Show Gist options
  • Save slgraff/846011efc6aae0b2b22a394f298ecb8b to your computer and use it in GitHub Desktop.
Save slgraff/846011efc6aae0b2b22a394f298ecb8b to your computer and use it in GitHub Desktop.
Target for iOS project set to Mac after importing CocoaPod

Project Target Mysteriously Changed from iOS to Mac

After creating a new project, then importing a CocoaPod I ran into a mysterious problem; the target for the project was changed from iOS to Mac.

I've experienced this one before several months ago but could not remember the solution. After some googling goodness I found the soution. I'm documenting it here to help my future self to solve this problem should I once agian forget.

  1. Click on the scheme then select 'Edit Scheme...' from the popdown menu
  2. In the pane that slides down, click on 'Run' in the left hand column
  3. Click on the 'Info' tab in the main pane
  4. You should see that the Executable popdown menu is currently set to 'None'. Click on it and select your app name.
  5. Click on the Close button

Boom, done! You can now select your desired device or simulator from the popdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment