Project 7x: Making an iPhone App with Xcode (15 pts. extra credit)

What You Need for This Project

Purpose

To perform security audits of apps, you need to understand the basics of how they are created, and get a working emulator.

Downloading Xcode

Open the App Store. Search for "xcode". Install the latest version, as shown below.

Making an App with Xcode

From the /Applications directory, launch Xcode.

Agree to the agreement.

When you are prompted to, enter your password.

In the "Welcome to Xcode" window, click "Create a new Xcode project" (or choose File > New > Project).

In the iOS section at the left of the dialog, click Application.

In the main area of the dialog, click "Single View Application", as shown below, and then click Next.

In the next screen, enter a "Product Name" of p7x-YOURNAME, and an "Organization Identifier" of YOURNAME, as shown below, and then click Next.

In the next dialog, choose a location for your project and click Next.

The Xcode workspace window appears, as shown below.

Launching iOS Simulator

At the top left, click the gray triangular Run button, as outined in red in the image above.

Enable and enter your password.

In the "iOS Simulator" window, scroll to the top. You should see a "Carrier" message and the time, as shown below.

The simulator is working, but the App does nothing so there's a blank screen.

Quit iOS Simulator by choosing iOS Simulator > Quit iOS Simulator (or pressing Command-Q).

Opening Your Storyboard

In Xcode, in the left pane, click Main.storyboard, as outlined in red in the image below.

On the bottom right, click the icon marked with a circle containing a square. This opens the Object Library.

In the lower right corner, type text to filter the contents of the Library and make the "Text Field" item visible, as shown below.

Adding a Text Field

Click on the "Text Field" item, drag it onto the center portion of the window (the "scene"), and drop it there.

An empty frame appears in the Scene, as shown below.

At the top right, click the down-arrow icon, as outlined in red in the image below. This opens "Attribute Inspector".

In the Placeholder field, type YOURNAME, as shown below.

Press Enter.

Your name appears in faint gray letters in the text field.

Launching your App in the Simulator

At the top left, click the gray triangular Run button.

When the simulator launches, scroll to the top to show YOURNAME, as shown below.

Saving a Screen Image

Make sure you can see YOURNAME in the iOS Simulator, as shown above.

press Commmand+3 to save a full-desktop image.

YOU MUST SUBMIT A FULL-SCREEN IMAGE FOR FULL CREDIT!

Save the image with the filename "YOUR NAME Proj 7x", replacing "YOUR NAME" with your real name.

Turning in your Project

Email the image to to cnit.128sam@gmail.com with the subject line: Proj 7x from YOUR NAME

Sources

https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/

https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/RoadMapiOS/FirstTutorial.html


Last modified 2-17-15 5:27 am