无法加载文件列表的内容:'/Target Support Files/Pods-Salotime/Pods-Salotime-frameworks-Debug-input-files.xcfilelist'

sal*_*eem 14 xcode ios cordova firebase cordova-plugins

我的 Xcode 版本:12.2

我的 Pod 版本:1.10.0

我的科尔多瓦版本:10.0.0

Node.js版本:12.16.3

我使用 cordova,我只是尝试安装 firebesex 插件:https://www.npmjs.com/package/cordova-plugin-firebasex 该插件依赖于各种组件,例如由 Cocoapods 在构建时引入的 Firebase SDK在 iOS 上。

我的播客文件:

在此输入图像描述

当我尝试构建项目时,出现以下错误:“'/Target Support Files/Pods-Salotime/Pods-Salotime-frameworks-Debug-output-files.xcfilelist'”

在此输入图像描述

尽管文件位于正确的路径中,但加载文件内容未成功

“Pods-Salotime-frameworks-Debug-input-files.xcfilelist”的内容:

${PODS_ROOT}/Target Support Files/Pods-Salotime/Pods-Salotime-frameworks.sh
${BUILT_PRODUCTS_DIR}/FirebaseCore/FirebaseCore.framework
${BUILT_PRODUCTS_DIR}/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework
${BUILT_PRODUCTS_DIR}/FirebaseInstallations/FirebaseInstallations.framework
${BUILT_PRODUCTS_DIR}/GoogleDataTransport/GoogleDataTransport.framework
${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework
${BUILT_PRODUCTS_DIR}/PromisesObjC/FBLPromises.framework
${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework
Run Code Online (Sandbox Code Playgroud)

Pods-Salotime-frameworks-Debug-output-files.xcfilelist 的内容

${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCore.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCoreDiagnostics.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseInstallations.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleDataTransport.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBLPromises.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework
Run Code Online (Sandbox Code Playgroud)

我已经尝试使用 1-pod 分解 2-pod 更新

但还是没用。

小智 23

这对我有用:

  1. 删除平台和插件文件夹
  2. 删除缓存数据rm -rf ~/Library/Caches/Cocoapods
  3. 删除派生数据rm -rf ~/Library/Developer/Xcode/DerivedData
  4. 跑步pod deintegrate
  5. 跑步pod setup
  6. 跑步pod install
  7. 重新运行您必须重新创建平台和插件文件夹的任何构建命令

我认为出现此错误是因为 pod 不使用语义版本控制的问题。您可以在https://gist.github.com/mbinna/4202236阅读更多相关信息。清除衍生数据可防止 xcode 重新读取旧代码