Test Application Data is not copied to the iOS Simulator

Number:rdar://21298033 Date Originated:09-Jun-2015
Status:Open Resolved:
Product:Developer Tools (Xcode) Product Version:7.0 beta (7A121l)
Classification:Serious Bug Reproducible:Always
Xcode Version 7.0 beta (7A120f)

Test Application Data bundles allow you to capture the persisted state of an application from a device.
In Xcode, schemes allow you to select Test Application Data to install with the app when you Run it. This is useful for testing, and most importantly - testing CoreData migrations.

This does not work in Xcode Version 7.0 beta (7A120f).

This feature has not worked correctly since Xcode Version 6.0.1 (6A317). Selecting a Test Application Data bundle to run in the simulator would always present an error message, despite the message saying it will work the "next time you run your app". A few versions later this message is not shown and the problem persists.

Steps to Reproduce:

Steps to Reproduce:
1. Install Version 7.0 beta (7A120f) (or greater than or equal to Version 6.0.1 (6A317)).
2. Extract files and Xcode Project in attached 'ApplicationPackageTest' zip file.
3. Run test.sh
4. Open the xcode project and run tests on the various shared schemes.

Expected Results:
Scheme 'With Container' passed tests. Simulator now contains data.

Actual Results:
Scheme 'With Container' fails tests. No data is copied to the simulator.

Xcode Version 7.0 beta (7A120f)



'ApplicationPackageTest.zip' was successfully uploaded.

Sample source code available here https://github.com/Ashton-W/rdar_ApplicationDataPackage


still an issue with Xcode 8.3.2 (8E2002). Duplicated (radar://31880681)

By addison.f.webb at April 28, 2017, 4:55 a.m. (reply...)

Still present in Xcode Version 8.0 beta 2 (8S162m)

By ashton.john.williams at July 7, 2016, 11:09 a.m. (reply...)

Still present in Xcode Version 7.3 (7D175)

By ashton.john.williams at March 24, 2016, 12:44 a.m. (reply...)

Still present in 7.1.1

Still present in Xcode Version 7.0 beta (7A121l) (Beta 2)

By ashton.john.williams at June 24, 2015, 10:18 a.m. (reply...)

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!