Getting error while installing phone gap in MAC osx? - ios

I'm trying on install Phonegap in my MAC os(10.10), i have xcode 6.1.1 installed in my system.
I'm following this and this link to install phonegap and installed Node.js and Command-Line Interface (CLI), but when i try to run this command npm install -g phonegap, i got error like shown in screen shot-
Please suggest me what i'm missing.Any help would be appreciated.

Add sudo
sudo npm install -g phonegap

Related

cordova ios cocoapods requirement not met

I am trying to run build default cordova app "hello" but when do do cordova requirements the message contains the following:
Requirements check results for ios:
Apple macOS: installed darwin
Xcode: installed [object Object]
ios-deploy: not installed
ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https://github.com/phonegap/ios-deploy into your path, or do 'npm install -g ios-deploy'
CocoaPods: not installed
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
There are a number of things I have not yet installed such as ios-deploy however cocoapods I already have yet cordova claims otherwise. I tried reinstall cocoapods via brew and got this:
➜ ~ brew install cocoapods
Warning: cocoapods 1.4.0 is already installed
I'm not sure why this is happening but I think it might have to do with the fact that I have to do all my commands using sudo, for example to list the requirements I needed to do sudo cordova requirements rather than just cordova requirements. Moreover cordova seems to mention this, in the output of requirements (see above) it says You cannot run CocoaPods as root.
Thanks for the help

How to upgrade Appium 1.5.3 to Appium 1.8.1

I have tried with command:
npm -install -g appium#1.6
but when I restart Appium, it is still in 1.5.3 version.
There are two different types of appium tool avaliable
Appium GUI
Appium command tool
It seems you updated to the command tool of appium and launch the appium GUI then you are checking the version.
Till now there is no GUI for appium1.6.
If you are checking command tool then there is some issue, you need to uninstall and install appium.
You can do
1. npm uninstall -g appium
2. npm install -g appium#1.8.1
3. appium -v
#is for specific version
Appium 1.8.1
If you have an old version of Appium server than you can update it without uninstalling it by executing following command in terminal or command prompt
npm -g update appium
This will update your Appium version to the latest version.
In case you want to update to a specific version than execute the following command:
npm update -g appium#1.6
I have had similar issues upgrading to a higher version of appium.
This has worked for me whenever I have problem with appium
npm uninstall -g appium
npm cache clean --force
Then do,
npm install -g appium#1.6
or
npm install -g appium
To get the latest version of appium
You can run below command in terminal to install appium 1.6
npm install appium
For this you need node.js to be installed in your machine
You can specify the version of the appium to be installed by using below command
npm install appium 1.6.3
try
npm install appium -g
you should get the latest stable version.
But if you are looking to install a specific beta, use following command from terminal:
npm install -g appium#1.6
Try out without -g, it should work without it. Also your version is wrong, use that one:
npm -install appium#1.6.1
This worked for me:
npm install appium -g
It by default installed the latest.
Try this command
npm install -g appium#1.6.0

how to install cordova in mac os 10.10.5

all how install cordova in mac os X Yosemite10.10.5
how to install Cordova in mac os 10.10.5 for developing hybrid application by terminal.
help me
thanks
You need Node.js and use
Install
$ sudo npm install -g cordova
create new project
$ cordova create hello com.example.hello HelloWorld
more information here
check you have installed node js. and which version of node js are using
From terminal chek
npm -v

ios-deploy not found under OS X El Capitan

ios-deploy not found error when running from command line "ionic run ios --device" under El Capitan. Have re-installed ionic and node, still no luck.
After a few tries of re-installing my environment and even compiling xcode, the following did the trick.
From your command line enter the following:
sudo npm install -g ios-deploy --unsafe-perm=true --allow-root
I was also having this problem building on Catalina. Turns out all I had to do was disconnect my iPhone from the USB port.
Disconnect any iOS devices from USB
Run the command and wait until it finishes
Reconnect the device
With Catalina 10.15.1 I got it working by installing ios-deploy with brew.
npm uninstall -g ios-deploy
brew install ios-deploy
You can try this also:
sudo npm install --global --unsafe-perm ios-deploy

Unable to run phonegap iOS app

I am unable to 'run' phonegap ios hello world app. Same approach on windows machine with android SDK worked. I've been googling this for a while but didn't found anything helpful. Any thoughts what may error I am getting mean?
Configuration:
phonegap -v: 3.4.0-0.19.7
cordova -v: 3.4.0-0.1.3
Mac OS X: 10.7.5 (unupgradable - Intel GMA X3100)
Xcode: 4.6.3
approach:
~: phonegap create hello
~: cd hello
~: phonegap run ios
...
** BUILD SUCCEEDED **
2014-03-16 18:24:17.091 ios-sim[6863:707] stderrPath: /Users/username/git/hello/platforms/ios/cordova/console.log
2014-03-16 18:24:17.096 ios-sim[6863:707] stdoutPath: /Users/username/git/hello/platforms/ios/cordova/console.log
2014-03-16 18:24:17.110 ios-sim[6863:707] Error loading /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/DVTFoundation: dlopen(/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/DVTFoundation, 265): no suitable image found. Did find:
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/DVTFoundation: GC capability mismatch
Unable to dvtFoundationBundle. Error:
[error] /Users/username/git/hello/platforms/ios/cordova/run: Command failed with exit code 1
I solved that issue by downgrading to ios-sim 1.8.2
npm uninstall -g ios-sim
brew uninstall ios-sim
npm install -g ios-sim#~1.8
I got the same issue. I had installed ios-sim using npm. Try uninstalling ios-sim and install it using brew.
npm uninstall -g ios-sim
brew install ios-sim
I solved this by (1)brew uninstalling the 1.9 version and then
(2) brew install the 1.8 version
This link explains the version change in brew: https://coderwall.com/p/lqphzg
I solved the issue by upgrading Xcode from 4.x.x to the latest (5.1.1). Then I reinstalled ios-sim using MacPorts. Then "phonegap run ios" succeeded.
This is a strange issue.
In my case, I solved this by running the project in Xcode on a simulator (found at platforms/ios/*.xcodeproj). When I went back to phonegap the problem was resolved.

Resources