-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Cordova/CDVURLProtocol.h' file not found on [email protected] #14
Comments
Same here. Read the above URL. breaking (CDVURLProtocol): delete by the Cordova-ios team. Could you please fix this as soon as possible? |
Until this is not fixed, I forked this repo and created a version that is enabled on Android only, so that it does not break iOS platform.
I hope this helps until the CDVURLProtocol dependency gets replaced with an alternative. |
@nasanchez is the plugin encryption gone on iOS with your method? Or is it still doing its job? |
no one managed to resolve this issue? |
Any solution for this issue ? |
I know this might be a dead repo now but has anyone taken a look at how the cordova-plugin-file accesses the local files? from what i know it works on the latest cordova-ios version. |
Thanks, did you try it with latest cordova/ios version? Did the app work for you? |
with this plugin xcode will not build the app as apache removed the CDVURLProtocol.h file from the cordova-ios platform repo at version 6.0.0 i do how ever have an ios app that is working fine with the cordova-file-plugin with the latest cordova-ios platform version. I am not that good with ios swift or objective c but i was looking at the code the other day and it looks like we can do with out the CDVURLProtocol.h file code and would need to adjust it to use the wkwebview code as i think cordova-ios is now only working with the wkwebview and doesnt use the uiwebview code. I can give it a go but I cant make many promises. |
Part of the problem is that the plugin code (objective-C) uses NSURL protocol to "intercept" file loading (so that it can decrypt it at runtime -- because your code is packaged encrypted in the IPA file). But since moving to WkWebView -- NSURL protocol is not supported (it was only supported with UIWebView). So, the "decryption" part of the plugin does not seem to work. That was true 4 months ago. However things change, so I don't know what is currently the case / whether they have added support or someone has forked and updated the code and written it up so it works. |
Correct. but the weird thing is that cordova-plugin-file also uses the NSURL protocol but still works with the latest cordova-ios version. i have looks at all the forks of this repo and of tkyaji's repo and none of them have been updated in over 2 years but again i started using this plugin not to long ago about the same time phonegap build was shut down. Edit: here is the results with NSURLProtocol being used in the cordova-plugin-file repo |
Is there any chance this plugin will work on iOS again? |
I think so. Cordova-ios 6.2.0 has a WKURLShemeHandler I think could be used to update this plugin. |
Hi,
I am currently using Cordova CLI 9.0.0 and cordova-ios 6.0.0.
However, when I install the plugin, I get an error.
Current setup for iOS
The error I'm seeing
I would be happy if cordova-ios 6.0.0 also has plugins available.
The text was updated successfully, but these errors were encountered: