When I try to run ionic I get the below error, Am I just missing cordova? or is it something else?
Usr:example1 user$ ionic add platform ios
Bower component installed - platform
Usr:example1 user$ ionic build ios
The provided path "/Users/user/ionicApps/example1/platforms/ios" is not a Cordova iOS project.
Usr:example1 user$
Cordova is actually installed, when I did cordova -v I see 5.0.0
The command to add the iOS platform is:
ionic platform add ios
Make sure you're on a Mac because you can't do this on Windows or Linux.
Related
I make mobile game on JS, and i use Ionic for build Android app.
For adding to my project Android Platform i writed:
C:\TB>ionic cordova prepare android
But this back me:
? Platform android is not installed! Would you like to install it? Yes
> cordova.cmd platform add android --save
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Using cordova-fetch for cordova-android#9.1.0
Adding android project...
Could not load API for android project C:\TB\node_modules\cordova-android
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd platform add android --save exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
At my node_modules folder have subfolder cordova-android, why ionic?!
How can i fix this?
P.S. My android SDK at needed folder AppData\Local\Android\Sdk
Try running the following commands
ionic cordova platform rm android
ionic cordova platform add android
ionic cordova build android
when i run
ionic cordova platform add android
Using cordova-fetch for cordova-android#~6.2.2
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: io.ionic.starter
Name: ionicFirebase
Activity: MainActivity
Android target: android-25
Subproject Path: CordovaLib
Android project created with cordova-android#6.2.3
Error: Source path does not exist: resources/android/icon/drawable-hdpi-icon.png
i am try to rm android i found platform array still on config.xml and when i run
ionic cordove resource
√ Collecting resource configuration and source images - done!
[ERROR] No platforms detected. Please run: ionic cordova platform add
and whan i run a gain
ionic cordova platform add android
say same thing error in path !!
this is my ionic info
ionic info
#ionic/cli-utils : 1.12.0
ionic (Ionic CLI) : 3.12.0
global packages:
cordova (Cordova CLI) : 7.0.1
local packages:
#ionic/app-scripts : 3.1.0
{{{{{Cordova Platforms : none}}}}
Ionic Framework : ionic-angular 3.9.2
System:
Node : v6.16.0
npm : 4.6.1
OS : Windows 10
Misc:
backend : pro
First try to remove android platform through command like
ionic cordova platform rm android
and then try to add it again by
ionic cordova platform add android
Lastly if Its not done then once uninstall npm and install it again to higher version(5.6.0).
Th error occurs because the image icon is missing so try the following command after adding the platform by navigating into the project folder
ionic cordova resources
The ionic cordova resources command generates the different sized
image for icon and splash screen
PhoneGap is not installed in my mac. Now, I want to run a PhoneGap project with Xcode and I am getting this error. Can anyone tell me how to run the PhoneGap project in Xcode? I want to run the project from Junkyard-Jumbotron.
I can't comment yet, have you checked in the file directory to see if the file exists? Make sure you have met all of the requirements.
install the following:
- Xcode 4.3+
- Xcode Command Line Tools
- Intel-based computer with Mac OS X Lion or greater (10.7+)
- Necessary for installing on device:
-----Apple iOS device (iPhone, iPad, iPod Touch)
-----iOS developer certificate
Install the iOS SDK and Apache Cordova
- Install Xcode from the Mac App Store or Apple Developer Downloads
- Install the Xcode Command Line Tools (Xcode Preferences -> Downloads -> Components -> Command Line Tools -> Install).
- Download the latest release of [Apache PhoneGap
-----extract its contents
-----Apache Cordova iOS is found under lib/ios
Install CordovaLib
-Download the Cordova source
-Extract to source to their final permanent location on your hard drive (for example, to ~/Documents/CordovaLib-2.X.X)
- There is no step 3
Here is the link to getting started on a new project:
http://docs.phonegap.com/en/2.1.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS
This is an issue that's affected a hybrid app built using Sencha Touch and another hybrid app built using Ionic. Both apps are packaged using the latest version of Cordova to generate the iOS and Android binaries.
I install the app on a device running, say Android 5.1.1. Open the app, it works fine. Then I upgrade the device to Android 6.0. Open that app and it freezes/crashes. Only solution to this problem is to uninstall the app and re-install on Android 6.0, which is a major inconvenience for the user.
Anyone else experience this same issue? I Googled but got nothing in the search results.
Just upgrade your application with the help of latest cordova pack with existing playstore key generated for your existing app. Try it may work but not sure.
I have build an android application using NativeScript but now i want to install it in my android phone but i don't know which .apk file i have to take to install the application in my phone.
According to the {N} docs you should execute tns deploy android on the command line. This will install your app onto the currently connected device. After the app has been installed, it will automatically start on Android.
If you want your app to be compiled before installing it on your device, you should execute tns run android on the command line. This will prepare, build and deploy your app.
You can find all the cli commands on the github page: https://github.com/NativeScript/nativescript-cli