【问题标题】:Migration Assist tool not working迁移助手工具不起作用
【发布时间】:2017-04-02 16:29:21
【问题描述】:

在使用 mfpmigrate 辅助工具将 IBM Mobilefirst Platform 7.0 混合源代码转换为 IBM MobileFirst Platform 8.0 源代码时,我收到如下错误:

C:\Mobilefirst>mfpmigrate client --in C:\Mobilefirst\Example --out C:\Mobilefirst\CordovaNewCode
Error: An error occured during execution of command.
Error: Option '--in' cannot be equal to option '--out'

另外,如果我使用的是scan,那么它会显示No deprecated or not supported APIs found.。尽管我使用了针对 IBM Mobilefirst Platform 7.1 及以下版本的旧 API。

C:\Mobilefirst>mfpmigrate scan --in C:\Mobilefirst\Example --out C:\Mobilefirst\CordovaNewCode
Starting the process to detect deprecated and not supported APIs...
Getting files from C:\Mobilefirst\...
Scanning C:\Mobilefirst\...
No deprecated or not supported APIs found.
Process to detect deprecated and not supported APIs has completed.

请告诉我为什么它没有将混合转换为 cordova IBM MobileFirst Platform 8.0。

谢谢,

【问题讨论】:

  • 您的代码中可能没有弃用的 API。您能否提及您认为在项目中使用的任何旧 API,这些 API 已被弃用,并且该工具在“扫描”期间无法识别它。
  • Re: '--in 不能等于选项--out' - 您是否尝试过从--in 指向主目录路径之外的完全不同的目录?例如C:\Mobilefirst_2\CordovaNewCode?
  • @deepak,您能否提供一个示例项目 - 比如说通过保管箱或任何其他文件共享服务共享它
  • 错误:执行命令时出错。错误:未检测到要迁移的受支持平台
  • 我尝试了不同的目录位置,它给出了响应“没有检测到支持的平台进行迁移”。 cmd sn -p: C:\Mobilefirst>mfpmigrate client --in C:\Mobilefirst\Example --out D:\CordProj 错误:执行命令时出错。错误:未检测到要迁移的受支持平台对于“扫描”,错误仍然是“未找到已弃用或不支持的 API”。我在下面添加了 MobileFirst 8.0 中已弃用的代码行 var devName=WL.Device.getFriendlyName();

标签: ibm-mobilefirst mobilefirst-studio


【解决方案1】:

如文档中所述,您必须指向实际的应用文件夹,例如../Desktop/InvokingAdapterProcedures/apps/InvokingAdapterProcedures,并且该应用程序还必须具有 iPhone 或 Android 等环境。否则它会抱怨缺少环境。

见:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/upgrading/migration-cookbook/#classic-hybrid-applications

【讨论】:

    猜你喜欢
    • 2018-11-23
    • 2021-09-02
    • 2018-09-26
    • 1970-01-01
    • 2019-04-14
    • 1970-01-01
    • 2016-04-16
    • 2015-12-18
    • 2013-07-08
    相关资源
    最近更新 更多