How to Use Xcode

How to Use Xcode thumbnail
Apple Xcode is included with the developer tools on new Mac computers.

Apple Xcode gives Mac users the ability to create applications for the Mac OS, iPhone, iPod Touch and iPad. Designed specifically for these devices, Xcode uses a layout and flow that differs from many other coding environments. Combining the code builder with an integrated interface builder, Xcode provides all the tools necessary for app creation.

Instructions

    • 1

      Click the "Spotlight" search icon at the top right corner of the screen. Type "Xcode" and click "Xcode - Developer" in the results list to launch the application.

    • 2

      Click "Create a new Xcode project" in the center left of the Welcome window. Click "Application" under the "iOS" heading to create an iPhone, iPod Touch or iPad application. Click "Application" under the "Mac OS X" heading to create a Mac application.

    • 3

      Click the desired application type in the panel on the right and click "Next." Type a product name and click to choose a device type. Click "Next," navigate to the desired path where you intend to save the project and click "Create."

    • 4

      Click the desired settings in the Summary window, then click the application files under your project name in the left panel.

    • 5

      Write your application code in each appropriate file. Click the "MainWindow.xib" file and drag buttons and other elements from the Library window to the view. Press and hold "Control," then click and drag the "File's Owner" icon from the center panel to any object to be controlled by code already written. Release "Control" and the mouse button. Click the name of the appropriate method. Repeat the process, dragging from the object to "View Controller" or "Window" to cause the object to trigger that method.

    • 6

      Click "Window" in the menu at the top of the screen. Click "Organizer" and select "Provisioning Profiles" in the left panel. Click "Import" at the bottom of the window. Navigate to your Apple provisioning profile, if you have one, and click "Open."

    • 7

      Click "File" and "Save," then click "Product." Hover over "Build for" and select "Build for Testing" to open the project on a device or simulator for testing. Click "Build for Running" to create an application that can be put on your device or computer. Click "Build for Archiving" to create an archive for submission to the App Store.

Related Searches:

References

Resources

  • Photo Credit Justin Sullivan/Getty Images News/Getty Images

Comments

Related Ads

Featured