How to Use Xcode

 How to Use Xcode

Xcode Targets Aren't Schemes. When developing an application, We most… | by  Shashwat Kashyap | OLX Group Engineering


  • How to get Xcode

XCode is an IDE (Integrated Development Environment) developed for Mac Operating Systems. Apple has created and added a group of software development tools in XCode. It provides facilities to develop softwares for macOS, tvOS, iOS and watchOS. As of now the latest stable XCode version is 14 and you can get it from Mac App Store.

This version of Xcode:

  • Includes SDKs for iOS 16, iPadOS 16, macOS 12.3, tvOS 16, and watchOS 9.
  • Supports on-device debugging in iOS 11 or later, tvOS 11 or later, and watchOS 4 or later.
  • Requires a Mac running macOS Monterey 12.5 or later.


If you have paid apple developer program you can download Xcode for free in App Store

Check out for requirements (Size/ Compatibility)


https://developer.apple.com/xcode


If you need older version you can get it from below link


If you need Xcode with free Apple ID you can get it from below link



  • Starting a new Xcode Project


Steps for building a new project

1. Go to XCode. Select Create a new Xcode project or

File -> New -> Project

2. Select iOS and App

3. Project Name - Whatever name

    Team - If you don't see a team, do not panic because you get it after you sign in Xcode with your Apple ID.

    Org ID - Reverse domain

    Bundle ID - It can be changed later if you need

    Interface - SwiftUI

    Language - Swift

    Use Core Data and Include Tests - Optional

4. Click Next button

5. Select a location for project and click Create button.


  • Major Areas of the Xcode Interface


Navigator Panel (Tabs/ Files)


Editor Area


Inspector Area


Tool Bar (Static bar/ Simulator/ Library)

Preview Pane (Aka Canvas) - gives you a visual representation of your code.


  • Your Project Files


Root node

    Test

    Products(Output)


App File (Entry point)


Content View

Preview of your user interface.

Assets Library

Asset Library is where you store images and colour assets for your app.

Info.plist


Preview Content

Pre Production Content



  • Navigation in Xcode


Go to last file or next


Right click -> Open


Two editor area


Canvas


  • Editing Code


Comments

// MART - Section 2


Minimap





Comments