I am trying to set up ionic in my Windows 7 machine. I follow the steps here http://ionicframework.com/docs/guide/installation.html.
When i do the step, ionic add platform android, it does nothing. ionic platform android tries to download cordova-android but not sure if its fine. Below are my console logs. Can someone help me how to solve this issues.
C:\inv-mob\todo>ionic platform android
npm http GET https://registry.npmjs.org/cordova-android/3.6.3
npm
C:\inv-mob\todo>ionic build android
C:\inv-mob\todo>
reinstalling the android sdk worked.
Related
I am working on an ionic 4 project and want to generate a version for the OSX platform.
I have successfully add the platform and build the project for this platform after upgrading to the last cordova version.
Now, i run the project for the OSX platform and i only get a black screen.
I had the information that we cannot generate a version of the ionic project for the OSX platform but after successed to add the platform i think that there are some new corrections in the cordova or ionic in recente version that my solve the problem.
Have any one encountred this kind of problem?
bellow is a config.xml file
https://github.com/zainebzaineb/project-ionic-osx/blob/master/config.xml
bellow is a package-lock.json file
https://github.com/zainebzaineb/project-ionic-osx/blob/master/package-lock.json
bellow is a package.json file
https://github.com/zainebzaineb/project-ionic-osx/blob/master/package.json
or can anyone help me get over this issue?
thanks in advance
I am doing ionic app debugging. After the debug and all. I am trying to release an update to app store, but It works perfectly in iPhone6 emulator. The following errors shows up.
This error shows up when i am trying to add this to app store.
I have already sent few updates before this, and there were not such errors.
Ionic use cordova and since cordova 6.0, there is a bug on the iOS builder 4.1.0.
You can temporally downgrade cordova or iOS builder until this bug will be fixed
to downgrade cordova (and so downgrade iOS builder)
sudo npm uninstall -g
sudo npm install -g cordova#5.4.1
OR
to downgrade only ios
sudo ionic platform rm ios
sudo ionic platform add ios#3.9.2
to check iOS version
sudo ionic platforms
It didn't find any icon for one of the resolutions your app supports
Try by regenerating icons from Ionic CLI:
$ ionic resources --icon
Build again for the iOS plateform
After this make sure there is icons in the resources folder of your app:
ios - App name folder - Resources - icons
Another solutiion try to delete the CFBundleIconFile from the info.plist file : Reference
I have started the IOS emulator through apache cordova CLI and it works, says the build is successful. I can interact with the emulator however my app is not installed on it?
Is there a command that im missing to install my app on this emulated device?
Thanks
To build
cordova build ios
To run in emulator
cordova emulate ios
To run in device
cordova run ios
It might be a bug in Cordova CMD. Try the following commands from your project root directory:
1) cordova build --emulator
2) ios-sim launch platforms/ios/build/emulator/<your_app_name>.app --devicetypeid "com.apple.CoreSimulator.SimDeviceType.iPhone-5s, 8.1"
If you don't have ios-sim install it: npm install -g ios-sim
I have problems adding Firefox OS as a platform to my Cordova project. I tried the simplest way:
installed phonegap globally:
sudo npm install -g phonegap
created phonegap project:
cordova create HelloWorld com.domain.hello HelloWorld
CD'd into the new HelloWorld folder, then added iOS as platform:
cordova platform add iOS
which worked, but when trying to add Firefox OS, I get
[Error: Platform "firefoxos" not recognized as core cordova platform.]
I tried updating the platform with:
phone gap platform update firefoxos
but all I get is
[phonegap] updating Fire Fox OS platform...
[error] Platform "firefoxos" is not installed. See "platform list".
http://docs.phonegap.com/en/3.4.0/guide_cli_index.md.html#The%20Command-Line%20Interface
You want to use Cordova not PhoneGap (yes, there is a difference).
npm install -g cordova
then follow along in the link provided.
Additional information related to Cordova and FirefoxOS:
http://docs.phonegap.com/en/3.4.0/guide_platforms_firefoxos_index.md.html#Firefox%20OS%20Platform%20Guide
I want to build a phonegap project (on windows 8.1) for windows 8 but somehow I get an error. Building a Android project goes without any errors. When I run the command 'phonegap run windows8' I get the following error:
I also tried 'phonegap install windows8', same problem. I installed phonegap last week using 'npm install -g phonegap'. Maybe a stupid question, but how do I know I use the latest release (currently 2.9.1)? When I do 'phonegap version' it returns 3.3.0-0.18.0.
I installed cordova instead of phonegap in my command-line (npm install cordova). with cordova everything went just fine. I searched in the platform list of the phonegap install and noticed phonegap doesn't support windows 8. Very confusing since the phonegap website tells us to install phonegap instead of cordova. If anyone has question about building a app phonegap for windows 8 let me know.