WKWebView cannot load files from app bundle when running on a real device
| Originator: | elada | ||
| Number: | rdar://20379146 | Date Originated: | 1.4.2015 |
| Status: | Duplicate of 17761459 | Resolved: | |
| Product: | iOS SDK | Product Version: | 8.1.2 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: WKWebView cannot load files from the app bundle. When you try to use an NSURLRequest created by getting a URL to a file in an app bundle, on a device, the page is not loaded and you get an error in debug console (in xCode) that says: Could not create a sandbox extension for '/' Steps to Reproduce: 1. Add an html file to your app bundle 2. Use NSBundle.mainBundle() to get an NSURL to it 3. Load the URL using WKWebView's loadRequest method Expected Results: The page is loaded correctly and all referenced resources are loaded correctly. No error message is displayed Actual Results: Nothing is loaded into the web view and you get a message in the debug console (in xCode) that says: Could not create a sandbox extension for '/' Version: 8.1.2 Notes: Duplicate of 17761459 Duplicate of 18039024 Duplicate of 20160687 Configuration: iPhone 6
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!