Xcode does not load xcappdata package in simulator

Number:rdar://24274107 Date Originated:2016-01-10
Status:Duplicate of 18050217 Resolved:2016-01-26
Product:Xcode Product Version:7.2
Classification:Bug Reproducible:YES
We have downloaded user data from the device into xcappdata package and are trying to start simulator with it to reproduce the user problem. Xcode does not load xcappdata even we have selected in Xcode scheme configuration Application Data and selected the xcappdata package.

We are also using xcappdata to setup tests with the complex data structures of the app.

Steps to Reproduce:
Steps to Reproduce:
1. Create a new project using the “Master-Detail Application” template that uses Core Data.
2. Run the application on a device.
3. Add 5 items.
4. You may stop running the application on your device—the following steps aren’t affected by it running or not.
5. Open the Xcode Organizer, select the “Applications” section of your device under the Devices tab.
6. Select your test application. You should see a bunch of folders and files populate the “Data files in Sandbox”. (This may not populate right away, so be patient.)
7. Click the “Download” button at the bottom and save the xcappdata package to your Desktop, giving it a descriptive name like 'v0 - 5 items.xcappdata'.
8. Click “Delete” to remove the application from the device—we will try to start with a clean install for the next steps.
9. Create a new Group in your project. I name mine “Test Data”.
10. Add v0 - 5 items.xcappdata to the group.
11. Select “Copy items into group folder”.
12. Do not add it to any targets.
13. Launch the app while holding the Option key—either Option-clicking the Run button, or Option-Command-R. A scheme configuration sheet will appear.
14. In the Options tab, select v0 - 5 items.xcappdata from the Application Data menu and click “Run”.

Expected Results:
The app would launch with 5 records pre-installed, based on the xcappdata package.

Actual Results:
The app always launches fresh.

Xcode 7.2 and 7.3 beta


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!