0%

Book Description

Learn the critical tips and techniques to make using Xcode for the iPhone, iPad, or Mac easier, and even fun. Explore the features and functionality of Xcode you may not have heard of. Go under the hood to discover how projects really work, so when they stop working, you'll know how to fix them. Explore the common problems developers face when using Xcode, and find out how to get the most out of your IDE. Dig into Xcode, and you'll discover it's richer and more powerful than you might have thought.

Get a huge productivity boost by working with Xcode instead of against it. Instead of hacky code fixes and manual processes, once you know the the why and how of Xcode's process, you'll discover that doing things Xcode's way makes your app development more elegant and less aggravating.

Explore the major features of Xcode: project management, building UIs with storyboards, code editing, compiling apps, fixing bugs and performance problems, unit- and UI testing, and source code management. Go beyond the basics and explore tasks that professionals deal with when they're working on big projects. Create storyboards that many developers can work on at once, even as projects grow to hundreds or thousands of files. Find the tools that make the code editor pleasant to work with, even in long coding sessions. Discover the right way to find and fix bugs when you have lots of code that's not always playing nicely together.Dig into specific and little-discussed features that help developers on Apple's other platforms: macOS, watchOS, and tvOS. When you're ready to distribute your app, learn how Apple's code-signing system really works. Find out when to let Xcode handle it automatically, and how to do it manually when needed.

Discover how much easier and more fun iOS development is when you know the secrets of the tools.

What You Need:

This book requires Xcode 9 and a Mac running macOS High Sierra (10.13.2) or later. Additionally, an iOS device is recommended for on-device testing but not required.

Table of Contents

  1.  Acknowledgments
  2.  Introduction
    1. Been There, Done That
    2. What’s in an IDE?
    3. No Regrets
    4. About This Book
    5. Expectations and Technical Requirements
    6. Online Resources
  3. 1. Projects
    1. Understanding Projects and Files
    2. Working with Project and Target Settings
    3. Using Configurations
    4. Managing Your App’s Version Numbers
    5. Adding Images and Other Files to the App
    6. Creating App Extensions and Frameworks
    7. Wrap-Up
  4. 2. Storyboards: Appearance
    1. Working with Scenes
    2. Inspecting the Inspectors
    3. Making Sense of Auto Layout
    4. Wrap-Up
  5. 3. Storyboards: Behavior
    1. Segues
    2. Embedded Scenes
    3. Storyboard References
    4. Custom Views
    5. Wrap-Up
  6. 4. Editing Source Code
    1. Theming the Code Editor
    2. Setting Text Editor Preferences
    3. Faster File Navigation
    4. Comment Magic
    5. Finding Documentation and Definitions
    6. Typing Source Code
    7. Searching for and Replacing Text
    8. Coding with Snippets
    9. Wrap-Up
  7. 5. Building Projects
    1. Understanding App Bundles
    2. Build Settings
    3. Build Phases
    4. Special Files in Builds
    5. Building on the Command Line
    6. Wrap-Up
  8. 6. Debugging Code
    1. Finding Bugs with Breakpoints
    2. Digging Deeper into Breakpoints
    3. Debugging with the Console
    4. Finding and Fixing Crashing Bugs
    5. Visual Debugging
    6. Wrap-Up
  9. 7. Improving Performance
    1. Managing Memory Mistakes
    2. Optimizing CPU Use
    3. Wrap-Up
  10. 8. Automated Testing
    1. Adding Test Targets
    2. Viewing Code Coverage
    3. Using Environment Variables in Tests
    4. Running Tests on the Command Line
    5. Packaging App Data for Tests
    6. Wrap-Up
  11. 9. Security
    1. Sandboxing and Entitlements
    2. App IDs and Your Developer Account
    3. Automatic Code Signing
    4. Manual Code Signing
    5. Wrap-Up
  12. 10. Source Control Management
    1. Creating and Cloning Git Repositories
    2. Using Your Git Repository
    3. Branching and Merging
    4. Dealing with Xcode’s Git Limitations
    5. Wrap-Up
  13. 11. Platform Specifics
    1. Command-Line Applications on macOS
    2. Multi-Platform Projects
    3. Working with watchOS Simulators
    4. On-Demand Resources for tvOS
    5. Layer Stack Images for tvOS
    6. External Monitors on iOS
    7. Wrap-Up
  14. 12. Extending Xcode
    1. Editor Extensions
    2. Distributing the Extension
    3. Wrap-Up
  15.  Bibliography
18.218.168.16