Muutke küpsiste eelistusi

Xcode Treasures [Pehme köide]

  • Formaat: Paperback / softback, 276 pages, kõrgus x laius x paksus: 234x190x21 mm, Illustrations, color
  • Ilmumisaeg: 10-Jan-2019
  • Kirjastus: The Pragmatic Programmers
  • ISBN-10: 1680505866
  • ISBN-13: 9781680505863
  • Formaat: Paperback / softback, 276 pages, kõrgus x laius x paksus: 234x190x21 mm, Illustrations, color
  • Ilmumisaeg: 10-Jan-2019
  • Kirjastus: The Pragmatic Programmers
  • ISBN-10: 1680505866
  • ISBN-13: 9781680505863
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.
Acknowledgments ix
Introduction xi
1 Projects
1(22)
Understanding Projects and Files
1(3)
Working with Project and Target Settings
4(6)
Using Configurations
10(2)
Managing Your App's Version Numbers
12(2)
Adding Images and Other Files to the App
14(4)
Creating App Extensions and Frameworks
18(4)
Wrap-Up
22(1)
2 Storyboards: Appearance
23(20)
Working with Scenes
23(4)
Inspecting the Inspectors
27(7)
Making Sense of Auto Layout
34(8)
Wrap-Up
42(1)
3 Storyboards: Behavior
43(22)
Segues
43(7)
Embedded Scenes
50(4)
Storyboard References
54(4)
Custom Views
58(4)
Wrap-Up
62(3)
4 Editing Source Code
65(24)
Theming the Code Editor
65(3)
Setting Text Editor Preferences
68(2)
Faster File Navigation
70(2)
Comment Magic
72(3)
Finding Documentation and Definitions
75(2)
Typing Source Code
77(2)
Searching for and Replacing Text
79(5)
Coding with Snippets
84(2)
Wrap-Up
86(3)
5 Building Projects
89(20)
Understanding App Bundles
89(4)
Build Settings
93(2)
Build Phases
95(5)
Special Files in Builds
100(4)
Building on the Command Line
104(2)
Wrap-Up
106(3)
6 Debugging Code
109(26)
Finding Bugs with Breakpoints
109(5)
Digging Deeper into Breakpoints
114(6)
Debugging with the Console
120(4)
Finding and Fixing Crashing Bugs
124(6)
Visual Debugging
130(4)
Wrap-Up
134(1)
7 Improving Performance
135(24)
Managing Memory Mistakes
135(11)
Optimizing CPU Use
146(11)
Wrap-Up
157(2)
8 Automated Testing
159(12)
Adding Test Targets
160(2)
Viewing Code Coverage
162(1)
Using Environment Variables in Tests
163(2)
Running Tests on the Command Line
165(2)
Packaging App Data for Tests
167(2)
Wrap-Up
169(2)
9 Security
171(18)
Sandboxing and Entitlements
171(3)
App IDs and Your Developer Account
174(2)
Automatic Code Signing
176(6)
Manual Code Signing
182(6)
Wrap-Up
188(1)
10 Source Control Management
189(18)
Creating and Cloning Git Repositories
189(4)
Using Your Git Repository
193(3)
Branching and Merging
196(4)
Dealing with Xcode's Git Limitations
200(6)
Wrap-Up
206(1)
11 Platform Specifics
207(22)
Command-Line Applications on macOS
207(5)
Multi-Platform Projects
212(4)
Working with watchOS Simulators
216(2)
On-Demand Resources for tvOS
218(6)
Layer Stack Images for tvOS
224(1)
External Monitors on iOS
225(3)
Wrap-Up
228(1)
12 Extending Xcode
229(10)
Editor Extensions
230(5)
Distributing the Extension
235(3)
Wrap-Up
238(1)
Bibliography 239(2)
Index 241
Chris Adamson is the co-author of iPhone 10 SDK Development (Pragmatic Programmers) and Learning Core Audio (Addison-Wesley Professional). He's also a freelance iOS and Mac developer, based in Grand Rapids, Michigan, where he also writes the Time.code() blog at subfurther.com/blog and hosts livestreams at invalidstream.com. Over the years, he has managed to own fourteen and a half Macs.