cordova ios resolveLocalFileSystemURL ENCODING_ERR在cordova.file.applicationDirectory
window.resolveLocalFileSystemURL(cordova.file.applicationDirectory +'www / tutorial / comic.json')
导致在设备上使用ENCODING_ERR进行失败callback。 在ios模拟器中运行FINE。
iosPersistentFileLocation =库
iosExtraFilesystems =捆绑,库,库 – asynchronous
完整path:
在设备上:///private/var/mobile/Containers/Bundle/Application/0E3CD0FD-BC69-42D1-BBB2-C59682E7F29A/My%20Comics.app/www/tutorial/comic.json
simulator-file:/// Users / admin / Library / Developer / CoreSimulator / Devices / 80E29D25-5164-4869-81F9-E30571D2BE92 / data / Containers / Bundle / Application / 650AE88A-FD42-469B-90FE-494DF11CFA02 / My%20Comics 。应用程序/networking/教程/ comic.json
你需要在你的iosExtraFilesystems中拥有root权限。 即使文档说它默认加载。 这固定它。
iosExtraFilesystems = root,bundle,library,library-nosync
- iOS:如何将audio文件读入浮动缓冲区
- UIManagedDocument单例代码openWithCompletionHandler调用两次并崩溃
- 苹果禁止在iOS(iPad)上使用“closuresbutton”吗?
- Phonegap / Cordova文件传输上传图像为Base64string不能在ios中工作
- 在safari ios中打开保存在应用程序中的.mobileconfig文件
- 在iOS上写一个文件
- 以JSON格式的string文件,如何将filecontent读入NSDictionary
- iCloud会将Documents目录中的所有file upload到云服务器吗?
- 在iOS应用程序中,主包和文档目录有什么区别?