迁移辅助工具无法正常工作

时间:2017-04-02 16:29:22

标签: ibm-mobilefirst mobilefirst-studio

使用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.

请让我知道为什么它没有将hybrid转换为cordova IBM MobileFirst Platform 8.0。

谢谢,

1 个答案:

答案 0 :(得分:0)

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

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