我已经使用 MFP 制作了一些项目,但今天早上我创建了一个全新的项目:
mfp create feb21
cd feb21
mfp add hybrid
mfp add environment (selected iphone + android)
mfp start
开始时,它运行,但随后在 iPhone 区域失败:
构建失败/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml:128:执行此行时发生以下错误:/Applications/IBM/MobileFirst-CLI/mobilefirst -cli/node_modules/generator-worklight-server/lib/build.xml:305:执行此行时发生以下错误:/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib /build.xml:315:执行此行时发生以下错误:/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml:294:构建应用程序失败:com .worklight.builder.exception.WorklightBuildException:com.worklight.builder.exception.WorklightBuildRuntimeException:资源管理器 - 读取信息时出现问题。plist 文件 /Users/raymondcamden/Desktop/trash/feb21/apps/App1/iphone/native/Entitlements-Debug.plist (没有这样的文件或目录)嵌套异常:/Users/raymondcamden/Desktop/trash/feb21/apps/App1 /iphone/native/Entitlements-Debug.plist(没有这样的文件或目录)
然后我又试了一次,真是太棒了,现在它在 Android 领域失败了:
构建失败/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml:128:执行此行时发生以下错误:/Applications/IBM/MobileFirst-CLI/mobilefirst -cli/node_modules/generator-worklight-server/lib/build.xml:305:执行此行时发生以下错误:/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib /build.xml:315:执行此行时发生以下错误:/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml:294:构建应用程序失败:com .worklight.builder.exception.WorklightBuildException:com.worklight.builder.exception.WorklightBuildRuntimeException:资源管理器 - 读取 XML 文件时出错:/Users/raymondcamden/Desktop/trash/feb21/apps/App1/android/native/AndroidManifest.xml(没有这样的文件或目录)嵌套异常:/Users/raymondcamden/Desktop/trash/feb21/apps/App1/android/native /AndroidManifest.xml(没有这样的文件或目录)
多次重试后,我只得到这个区域的错误。我可以确认该文件确实不存在,但我不知道为什么。