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-serve-ios does not generate the build/emulator folder #124

Open
vesper8 opened this issue Aug 16, 2020 · 4 comments
Open

cordova-serve-ios does not generate the build/emulator folder #124

vesper8 opened this issue Aug 16, 2020 · 4 comments

Comments

@vesper8
Copy link

vesper8 commented Aug 16, 2020

I'm really confused because I could swear this used to work. I updated a lot of dependencies lately and now I'm noticing that when I run cordova-serve-ios after running cordova-build-only-www-ios, it does not update the files inside the src-cordova/platforms/ios/build/emulator folder and what ends up launching on my IOS Simulator is an old version

If I delete the emulator folder manually, it does not get recreated

The only way I've found to create this folder, and correctly open the Simulator with the latest version is to run cordova emulate ios from inside the src-cordova folder

So I wonder then what is the point of the cordova-serve-ios command now.. I thought this was meant to test out in a simulator or alternatively a USB connected device

@codecat
Copy link

codecat commented Aug 26, 2020

I have a similar problem with cordova-serve-ios where live reload doesn't properly reload the html on the device, even if I press Cmd+R in the Safari web developer window. This seems to have started after installing ios-cordova 6.x, as it worked fine on 5.1.1.

The difference is that 5.1.1 is using UIWebView (which Apple doesn't support anymore) and 6.x is using WKWebView (which is required for submitting apps to the app store now).

Edit: This also happens on 5.1.1 with the WKWebView plugin as well as the ionic webview plugin.

@yokins
Copy link

yokins commented Sep 27, 2020

@codecat I have the same problem, do you have any solution?

@codecat
Copy link

codecat commented Sep 27, 2020

I have not found a solution, however it seems to have been happening less often with the ionic webview.

I just restart the app whenever it starts behaving strangely and that fixes it for a while.

@yokins
Copy link

yokins commented Sep 27, 2020

yes, only clean safari cache or restart app, then the page will refresh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants