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.
Related
I'm new to Fastlane. Does anyone know how to fix this error from running
fastlane ios myLane.
The output:
[12:50:11]: fastlane finished with errors
[!] Unable to locate Xcode. Please make sure to have Xcode installed on your machine
But I have the newest Xcode (9.3.1) installed from Mac App Store.
Environment info:
fastlane --version
fastlane 2.95.0
which is the newest version.
ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
Try check Preferences in Xcode under Locations and be sure you have selected your Xcode version in the Command Line Tools dropdown:
CLI approach:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
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
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 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
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