Cloning the Utility App Assignment | My Assignment Tutor

Cloning the Utility App AssignmentRepository- XcodeThis guide will detail how to clone your Utility App assignment repository to your local machineusing GitHub desktop.Step 1First you need to generate the repository by clicking this link: 2Once you have clicked this link you will be taken to a page asking you to accept the assignment (youmay be asked to login to GitHub and grant access to GitHub classroom).This page will look similar to the below. Click Accept this Assignment.Step 3GitHub classroom will now generate your own unique repository for the assignment.Please wait while it completes the import process.Step 4Once imported you will be presented with a success message like the one below. Included here is aURL for your repository on GitHub keep a note of this URL.Step 5So far we have successfully created your repository on GitHub, but we need to download this toyour machine so you can write your code and then send this back to GitHub. For this we will useGitHub desktop.Open GitHub desktop and clone the repository. If you have no existing repositories you can do thisby clicking the Clone a Repository button on the opening screen.If you already have some repositories downloaded you can add another on by selecting FileClone Repository from the menu bar.Step 6You will be presented with Clone a Repository screen similar to the one below. You should look forthe repository you wish to clone from those listed. This will be named something like: CodeLab-I-20-21/utility-app-yourgithubusernameClick Choose… next to the local path field and browse to sensible location on your machine tosave the repository, eg: Documents DevOnce you have selected a folder on your machine click Clone to download the repository.Step 7You should now have a copy of the repository from Github on your local machine and GitHubdesktop should look like the below screen.Step 8Now we need to create the project file to write the code. In Xcode go to File → New → ProjectStep 9Ensure top tab is on macOS, select Command Line Tool & click NextStep 10Set the options for your project:Give the product a name (e.g. “UtilityApp”)Set organisation identifiers (e.g. com.yourname)Set language as C++Click NextStep 11Navigate to the location you cloned the repository to and click CreateStep 12You now have an Xcode project to begin coding your solution. Initially you will be presented withthe build settings.Step 13Click on main.cpp in the left hand toolbar to get started. Xcode will provide you with some initial“Hello World” code.Step 14As you write your code Github Desktop will keep track of your changes in your main.cpp file andany other files you add to your project. You should make regular commits to ensure you can fallback to previous versions if things go wrong. To make commits write a descriptive message for thechanges you have made and click commit to master.Step 15When making commits you should also push your your work to GitHub this will make sure you havea backup of your work. Most importantly when you are happy with your final solution don’t forgetto make sure you make one final commit and push to your final code before the deadline. To pushcode to GitHub click Push Origin after making a commit.Step 16To check your code has submitted correctly go to your repository on GitHub, the URL for this willbe: can also easily get to your repository on GitHub by clicking the View on GitHub button inGitHub Desktop.


Leave a Reply

Your email address will not be published.