Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open an existing GitHub project with Xcode?

Tags:

xcode

iphone

I am new to xcode and I want to learn iphone development.

I found one demo project on github, I want to know how to open this existing project?

like image 275
why Avatar asked Mar 01 '11 14:03

why


2 Answers

Note: since June 2016, you can open your demo GitHub project in Xcode directly from the GitHub site!

But you will need the latest Xcode 9, announced at the 2017 WWDC

See "Clone in Xcode"

It's easy to explore code in your browser when you visit a GitHub repository, but you often want to pull that code directly into the appropriate editor and try it out.
For example, if the repository contains an .xcodeproj or .xcworkspace file, you might want to open that code in Xcode.

This is possible starting today with the new "Open in Xcode" button.

https://cloud.githubusercontent.com/assets/19977/26796930/158f0a5c-49e0-11e7-8c26-eb666b7f666c.gif

That will trigger the git clone for you.

Note: as illustrated in "Unable to see “Open in Xcode” button on GitHub", you also have to be logged in to GitHub in Xcode as well.

In Xcode, navigate to Preferences.../Accounts, select GitHub and enter your login credentials.

like image 71
VonC Avatar answered Oct 07 '22 13:10

VonC


  • Download the project via git / or zip
  • Open folder
  • Double click on .xcodeproj file
  • if on the top left, you see a something like "Base sdk missing"
    • Double click on the first item in the three
    • Go to tag build
      • Select a sdk for the Base SDK
    • Close the opened popup
    • Click on build an run
    • If you have error, you should see a red icon on the right bottom
like image 22
j_freyre Avatar answered Oct 07 '22 13:10

j_freyre