August 2013
Intermediate to advanced
200 pages
5h 26m
English
For our first technique, we’re going to use a feature of Xcode schemes that lets us specify an application data package to load into the simulator or device alongside the app when built and run from the Xcode GUI. This package completely replaces whatever is in the application’s sandbox, effectively resetting documents and preferences. You can pull these packages off live devices, so it’s a great way to take a snapshot of state you want to save for later.
To learn this technique, we’ll write a behavior test for the sorting in NearbyMe that depends on a specific set of search terms. We’ll first create an application data package that we’ll use as a baseline. We’ll store this data package ...
Read now
Unlock full access