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

Wrong version of cordova-ios when auto-adding ios platform #725

Closed
ccoenraets opened this issue Jan 21, 2016 · 4 comments
Closed

Wrong version of cordova-ios when auto-adding ios platform #725

ccoenraets opened this issue Jan 21, 2016 · 4 comments

Comments

@ccoenraets
Copy link

With the latest CLIs, doing:

cordova create test
cordova platforms add ios
cd test
cordova platforms

shows cordova-ios 3.9.2

However:

ionic start test
cd test
ionic platforms

shows cordova-ios 3.8.0

You can then update to 3.9.2 with:

ionic platforms update ios

or...

ionic platforms remove ios
ionic platforms add ios

also gives me 3.9.2

When auto-adding iOS, is there a reason the ionic CLI doesn't default to the latest version of cordova-ios?

@mirkonasato
Copy link

Similar issue here. And with the auto-added ios platform the icon and splash screen images are the Cordova ones instead of the Ionic ones, and the app name sometimes appear as HelloCordova instead of the project name.

$ ionic start my-app blank
Adding in iOS application by default
$ cd my-app
$ ionic platform list
Installed platforms: ios 3.8.0

Removing and re-adding the platform seems to fix everything.

$ ionic platform rm ios
$ ionic platform add ios
$ ionic platform list
Installed platforms: ios 4.0.1

and the images are the Ionic ones.

To be honest I'm not sure why ios is added by default when android is not, it's inconsistent. I would rather have no platforms by default.

Full versions:

$ ionic info

Your system information:

Cordova CLI: 6.0.0
Gulp version:  CLI version 3.9.0
Gulp local:
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.4
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.2.6
Xcode version: Xcode 7.2 Build version 7C68

@redfox05
Copy link

redfox05 commented Mar 1, 2016

@mirkonasato I agree, IOS should not be added by default. Otherwise, why not android.
But im concerned if you have an issue with the ios auto adding. Does this mean it could also not properly remove ios using "ionic platform remove ios"

Basically, we need just an android app, so have no need for ios. In fact right now, we just want a Cordova webview wrapper. So neither Android or IOS.

I have created another issue specifically to removing the IOS by default behaviour: #799

@mirkonasato
Copy link

Removing with ionic platform rm ios works fine, and if you re-add it with ionic platform add ios then everything works as expected. It's only when the ios platform is auto-added on project creation that it behaves oddly.

@ionitron-bot
Copy link

ionitron-bot bot commented Jul 12, 2018

Thanks for the issue! This issue appears to be associated with an old version of the Ionic CLI. Please update to the latest CLI version, which supports all versions of the Ionic Framework. If the issue is relevant and if it persists after updating to the latest CLI version, please create a new issue.

Thank you for using Ionic!

@ionitron-bot ionitron-bot bot closed this as completed Jul 12, 2018
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants