mfpdev app webupdate期间出错

时间:2017-01-20 18:19:11

标签: ibm-mobilefirst

当我使用命令

上传webupdate时
mfpdev app webupdate

我获得了以下错误

Error: Web resources could not be deployed for platform: ios
Error: The mfpdev app webupdate command failed: INVALIDPLATFORMVERSION

Android平台不会向我发送错误。

请帮帮我。

编辑:环境版本

Cordova CLI: 6.3.1 
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.36
ios-deploy version: 1.8.6 
ios-sim version: 5.0.8 
OS: macOS Sierra
Node Version: v4.4.3
Xcode version: Xcode 7.3.1 Build version 7D1014

EDIT2:插件列表:

com.testfairy.cordova-plugin 2.0.9 "TestFairy Plugin"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.4 "Console"
cordova-plugin-contacts 2.2.0 "Contacts"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-device-motion 1.2.3 "Device Motion"
cordova-plugin-dialogs 1.3.1 "Notification"
cordova-plugin-geolocation 2.4.0 "Geolocation"
cordova-plugin-globalization 1.0.5 "Globalization"
cordova-plugin-inappbrowser 1.6.1 "InAppBrowser"
cordova-plugin-mfp 8.0.2016101414 "IBM MobileFirst Platform Foundation"
cordova-plugin-mfp-jsonstore 8.0.2016101414 "IBM MobileFirst Platform Foundation JSONStore"
cordova-plugin-request-location-accuracy 2.2.0 "Request Location Accuracy"
cordova-plugin-splashscreen 4.0.0 "Splashscreen"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.3.0 "Whitelist"
cordova-sms-plugin 0.1.11 "Cordova SMS Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
nl.x-services.plugins.insomnia 4.1.0 "Insomnia (prevent screen sleep)"

和platform.json: "ios": "4.2.1"

1 个答案:

答案 0 :(得分:0)

我能够使用cordova-ios@4.3.1成功测试直接更新。

使用mfpdev app webupdate命令时,已更改的Web资源已打包并部署到MobileFirst Server。稍后,一旦应用程序尝试从MobileFirst Server获取令牌,屏幕上就会出现一个直接更新对话框,并且已成功应用。

思想:

  • 更新您的MobileFirst CLI:npm install -g mfpdev-cli
  • 更新Ionic应用程序中的iOS平台