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
Related
Since our development occurs on both macOS because it is required by iOS and on Windows for those that are not doing iOS development normally and Linux for the CI servers (except for the one that is building for iOS). Should Cordova platform add only be done locally and not checked in?
I was wondering because if I add the Xcode platform it tries to download it on Windows and Linux. Not sure if it will have issues.
Maybe I should just avoid npx cordova build and instead just limit to npx cordova build [platform]
Tracking any platform projects in platforms/ is not recommended in the Cordova ecosystem because those platform projects are considered volatile build artifacts so are liable to be wiped if you update the platform project (e.g. cordova platform rm ios && cordova platform add ios#latest).
If you want to build only Android on a non-OSX machine, after checking out the repo, you should run npx cordova platform add android && npx cordova build android
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 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.
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.