Reputation: 3457
I am trying to create a new project, following:
$ phonegap create test com.temp testX
$ cd test
$ phonegap build ios
$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
The plugin (device) is successfully downloaded to test/plugins/
, but not successfully install to test/platforms/ios/testX/Plugins/
. Opening the project in Xcode will show those files are missing. Manually copy and reference them won't completely fix it.
What is the cause of this?
PS: It works if I dont specify the project's name:
//project name will be HelloWorld.xcodeproj
$ phonegap create test
Upvotes: 0
Views: 596
Reputation: 1503
Hi "git" is also a node module. Simplest way want i found is.
npm install -g git
This will install git in you node source location as a module.
Restart the machine.
Install phonegap plugin: C:\Users\user1\yourprojectname>cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
You will get response as: Fetching plugin from "https://git-wip-us.apache.org/repos/asf/cordova-plugin-cam era.git"... Starting installation of "org.apache.cordova.camera" for android Preparing android project org.apache.cordova.camera installed on android.
Hope this will be very helpful. If any issue reply.
Upvotes: 1
Reputation: 33
Add the plugin before you build iOS by switching the order of your last 2 commands
Upvotes: 1