Skip to content
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/CDVUserAgentUtil.h' file not found on cordova-ios@6 #709

Closed
eun-choi opened this issue Jun 1, 2020 · 11 comments
Closed

'Cordova/CDVUserAgentUtil.h' file not found on cordova-ios@6 #709

eun-choi opened this issue Jun 1, 2020 · 11 comments

Comments

@eun-choi
Copy link

eun-choi commented Jun 1, 2020

  1. cordova plugin add cordova-plugin-inappbrowser@3.2

  2. cordova platform add ios@5.1.1

  3. xcode build pass.

  4. cordova platform rm ios

  5. cordova platform add ios@6

  6. xcode build failed.

  • error file: CDVWKInAppBrowser.m
  • error line: 27
  • error msg: 'Cordova/CDVUserAgentUtil.h' file not found

it seems to be related apache/cordova-ios#801

@erisu
Copy link
Member

erisu commented Jun 1, 2020

The current release of IAB does not and will not work with Cordova iOS 6.0.0.

This is expected as the implementation of CDVUserAgentUtil was apart of the UIWebView. The next major release of IAB removes CDVUserAgentUtil.

This is the removal PR #635, and already merged.

@erisu erisu closed this as completed Jun 1, 2020
@markamccorkle
Copy link

@erisu Any ETA on the IAB release? This is a breaking change for anyone updating to cordova-ios:6.0.0

@AdriVanHoudt
Copy link

hey @erisu
Thanks for your work on cordova ✨
This error also caught me off guard and it took me a while to find what was going on.
I understand that releases depend on voluntary work so hard dates etc are hard but since IAB is so widely used it might be worth just adding a note on the release notes (on the blog). If this is something I can do (pr wise) I would love to help!

@timbru31
Copy link
Member

timbru31 commented Jun 5, 2020

All relevant development (not support!) communication is over at our mailing lists (dev@cordova.apache.org): https://lists.apache.org/thread.html/r4355de14684f1fb0c70a90f94cf76c6ee2645fc82a5a34af1e41c9c9%40%3Cdev.cordova.apache.org%3E

Feel free to join the list and participate in the voting and testing once Niklas made the [VOTE] thread.

@prodrammer
Copy link

Was this intended to be fixed in cordova-plugin-inappbrowser@4.0.0? I am running cordova-ios@6.1.0 and cordova-plugin-inappbrowser@4.0.0.

When I try to build, I get the following error.

Plugins/cordova-plugin-inappbrowser/CDVWKInAppBrowser.m:27:9: fatal error: 
      'Cordova/CDVUserAgentUtil.h' file not found
#import <Cordova/CDVUserAgentUtil.h>

Any ideas? I need to publish my app :-).

@prodrammer
Copy link

I didn't understand that you can add specific versions of ios in the platform command. Running cordova platform add ios installs the latest version of cordova-ios which is currently 6.1.0 which causes the build to fail with the latest release of cordova-plugin-inappbrowser.

The workaround is:

cordova platform rm ios
cordova platform add ios@5.1.1

@timbru31 Are you aware of this issue?

@timbru31
Copy link
Member

timbru31 commented Aug 7, 2020

There is no issue with installing both latest versions. You probably have a dirty platforms or plugins folder.

@prodrammer
Copy link

prodrammer commented Aug 7, 2020

@timbru31 I have a reset script that removes node_modules and platforms and then reinstalls. I failed to include removal of the plugins folder. I updated my script and re-ran. It worked! Thanks! However, I didn't "dirty" the plugins folder. Maybe that's an issue that should be looked into?

@breautek
Copy link
Contributor

breautek commented Aug 7, 2020

@timbru31 I have a reset script that removes node_modules and platforms and then reinstalls. I failed to include removal of the plugins folder. I updated my script and re-ran. It worked! Thanks! However, I didn't "dirty" the plugins folder. Maybe that's an issue that should be looked into?

tbh, I'm not exactly sure on the purpose of the plugins folder, I believe it's an artefact of pre-npm days where Apache Cordova had its own plugin repository. I think all code responsible for loading/copying plugins to the plugin folder can be removed, but this is really a discussion that should be placed in the dev mailing.

@prodrammer
Copy link

@breautek Message sent. Thanks!

@jammind
Copy link

jammind commented Sep 16, 2020

@erisu Thanks for your amazing work. As Apple's UIWebView deadline is approaching, we really need the plugin that is compatible with Cordova iOS 6. Is there a schedule for the upgrade?

It's already compatible. Cool!

@apache apache locked and limited conversation to collaborators Sep 16, 2020
ofalvai added a commit to bitrise-io/ionic-conference-app that referenced this issue Feb 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants