尝试将https://github.com/cowbell/cordova-plugin-geofence添加到Visual Studio下的项目中。插件可以从config.xml上的UI添加好。但是,当然后尝试构建时,构建失败并出现错误'错误2构建服务器上的远程构建错误构建失败并出现错误对path.join的参数必须是字符串'。当我查看代码时,插件显示在配置XML中,插件已添加到插件目录中。删除插件允许构建进行良好。构建服务器是我的Mac运行远程代理,除此之外没有问题。
Failed to install 'cordova-plugin-geofence':TypeError: Arguments to path.join must be strings (TaskId:11)
1> at path.js:360:15 (TaskId:11)
1> at Array.filter (native) (TaskId:11)
1> at Object.exports.join (path.js:358:36) (TaskId:11)
1> at module.exports (/Users/anthonyhumphreys/remote-builds/builds/34458/cordovaApp/plugins/cordova-plugin-geofence/hooks/add_swift_support.js:11:37) (TaskId:11)
1> at runScriptViaModuleLoader (/Users/anthonyhumphreys/remote-builds/node_modules/cordova/4.3.0/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:151:18) (TaskId:11)
1> at runScript (/Users/anthonyhumphreys/remote-builds/node_modules/cordova/4.3.0/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:129:16) (TaskId:11)
1> at /Users/anthonyhumphreys/remote-builds/node_modules/cordova/4.3.0/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:114:20 (TaskId:11)
1> at _fulfilled (/Users/anthonyhumphreys/remote-builds/node_modules/cordova/4.3.0/node_modules/cordova/node_modules/q/q.js:787:54) (TaskId:11)
1> at self.promiseDispatch.done (/Users/anthonyhumphreys/remote-builds/node_modules/cordova/4.3.0/node_modules/cordova/node_modules/q/q.js:816:30) (TaskId:11)
1> at Promise.promise.promiseDispatch (/Users/anthonyhumphreys/remote-builds/node_modules/cordova/4.3.0/node_modules/cordova/node_modules/q/q.js:749:13) (TaskId:11)
这是config.xml中插件的条目
<vs:plugin name="cordova-plugin-geofence" version="0.4.0" />
我在VS2015 RC中通过gui安装了这个插件,因为我在VS博客上看到有一个涉及RC中解决的插件的错误....任何帮助都真的很感激,谢谢大家。