我已经把头发拉了好几天,希望我能在这里领先。
我一直在使用Cordova开发IOS和Android应用程序。 Android是一件轻而易举的事情,经过多次嘲笑之后,我设法让IOS版本在我的iPhone 6s上运行。但是,当我在VS项目上进行重建时,事情就停止了。 remotebuild服务器显然在MAC上运行(remotebuild --secure false),VS中的设置正确,安全=假,没有引脚,在本地IP地址192.168.1.119。构建开始,服务器显示:
...
Saving build request payload to : ...
POST /cordova/build/tasks?command=build&vcordova=6.0.0&cfg=debug&loglevel=warn - - ms - -
VS日志输出为:
1>------ Build started: Project: Customer App, Configuration: Debug iOS ------
1> Your environment has been set up for using Node.js 4.4.1 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac
1> ------ Name from source package.json: vs-tac
1> ------ Version from source package.json: 1.0.40
1> ------ Package already installed globally at correct version.
1> ------ Cordova tools 6.0.0 already installed.
1> ------ Build Settings:
1> ------ Build Settings:
1> ------ platformConfigurationBldDir: C:\Users\Owner\Perforce\GoShare\Blank\Ionic Blank\bld\iOS\Debug
1> ------ platformConfigurationBinDir: C:\Users\Owner\Perforce\GoShare\Blank\Ionic Blank\bin\iOS\Debug
1> ------ buildCommand: build
1> ------ platform: iOS
1> ------ cordovaPlatform: ios
1> ------ configuration: Debug
1> ------ cordovaConfiguration: Debug
1> ------ projectName: Customer App
1> ------ projectSourceDir: C:\Users\Owner\Perforce\GoShare\Blank\Ionic Blank
1> ------ npmInstallDir: C:\Users\Owner\Perforce\GoShare\Blank\Blank
1> ------ buildServerUrl: http://192.168.1.119:3000/cordova
1> ------ buildTarget: iOSEmulatoriPhone5
1> ------ language: en-US
1> ------ Platform ios already exists
1> ------ Updating plugins
1> ------ Currently installed plugins: cordova-plugin-device@1.1.1,cordova-plugin-device-orientation@1.0.2,cordova-plugin-file@4.1.1,cordova-plugin-geolocation@2.1.0,cordova-plugin-splashscreen@3.1.0,cordova-plugin-statusbar@2.1.2,cordova-plugin-whitelist@1.2.1,ionic-plugin-keyboard@1.0.9
1> ------ Currently installed dependent plugins:
1> ------ Currently configured plugins:
1> ------ Incremental Build: false
1> ------ Submitting new build request to: http://<ip address>:3000/cordova/build/tasks?command=build&vcordova=6.0.0&cfg=debug&loglevel=warn
1>MSBUILD : cordova-build error : Error: Non-secure connection to http://192.168.1.119:3000/cordova could not be established. Verify that the build server is not running in secure mode.
1> Error Non-secure connection to http://192.168.1.119:3000/cordova could not be established. Verify that the build server is not running in secure mode.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
我已经确认http://:3000返回:
远程构建Express服务器在端口3000上开放业务
我不知道会在PUT上造成这种失败。我已经尝试了我能想到的一切。
非常感谢任何帮助!