"Use Cellular Data For" setting ignored for universal binary

Originator:mbabin
Number:rdar://16890791 Date Originated:12-May-2014 05:32 PM
Status:Open Resolved:
Product:iOS SDK Product Version:7.1.1 (11D201)
Classification:Bug Reproducible:Always
 
Summary:
For a universal binary version of an app (armv7, armv7s, arm64) running on a 64-bit device (iPhone 5s), where only a cellular connection (LTE) is available and the user has specified Settings > Cellular > Use Cellular Data For to be off for the app; network requests will still succeed, no alert is presented to the user, and reachability API results indicate that the network/WAN are reachable.

Steps to Reproduce:
1. Connect an iPhone 5s.
2. Launch Xcode.
3. Open a project which makes network requests (e.g., NSURLSession) at startup.
4. Select Project, Build Settings. Make sure "Architectures" and "Valid Architectures" are set to include armv7, armv7s, arm64. Set "Build Active Architecture Only" to Yes for Debug configuration, No for Release configuration. 
5. Edit Scheme, set Build Configuration for Run to Debug.
6. Run the app on the device.
7. Quit the app.
8. On device: Settings > Cellular >Use Cellular Data For: - find the app in the list, turn the switch to off.
9. Disable WiFi on the device.
10. Run the app again. Should receive an alert that cellular data is turned off for the app.
11. Quit the app.
12. Edit Scheme, set Build Configuration for Run to Release.
13. Build and run the app on the device.


Expected Results:
Network requests should not succeed and the "cellular data is turned off" alert should appear.

Actual Results:
Network requests succeed, no alert is presented.

Version:
7.1.1 (11D201)

Notes:
For testing, I used the Reachability sample project from Apple and added code to -[APLViewController viewDidLoad] to use an NSURLSession to request data from the URL "http://www.apple.com/".

Configuration:
iPhone 5s (Model A1453, A1533), 16 GB

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!