Impossible to test -application:performFetchWithCompletionHandler: on locked device.

Originator:vinnycoyne
Number:rdar://15813126 Date Originated:14/01/2014
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 7.1b3 / Xcode Version 5.1 (5B71o)
Classification:Enhancement Reproducible:Always
 
Summary:
I am trying to test the effects of NSFileProtectionCompleteUntilFirstUserAuthentication on my app's files when the app is launched in the background by performFetchWithCompletionHandler:

It is seemingly impossible to debug issues relating to this problem using Xcode, because Xcode refuses to launch an app when the device is locked.

Steps to Reproduce:
1. Create an iOS project in Xcode that supports background fetching.
2. In your app's debug scheme, enable the "Launch due to a background fetch event" setting.
3. Reboot your iOS device and connect to Xcode (do not unlock the device).
4. Build & run your app on device.

Expected Results:
The app should launch in the background and the performFetchWithCompletionHandler: method should be called.

Actual Results:
Xcode refuses to launch the app because the device is locked.

Version:
iOS 7.1b3 / Xcode Version 5.1 (5B71o)

Notes:


Configuration:


Attachments:

Comments


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!