Unable to load contents of file list: '/Target Support Files/Pods-Salotime/Pods-Salotime-frameworks-Debug-input-files.xcfilelist'
Asked Answered
C

3

17

my Xcode Version:12.2

my pod version: 1.10.0

my cordova version: 10.0.0

node.js version:12.16.3

i using cordova and i just try to install firebesex plugin:https://www.npmjs.com/package/cordova-plugin-firebasex This plugin depends on various components such as the Firebase SDK which are pulled in at build-time by Cocoapods on iOS.

my podfile:

enter image description here

when i try to build the project , i got the following error: "'/Target Support Files/Pods-Salotime/Pods-Salotime-frameworks-Debug-output-files.xcfilelist'"

enter image description here

Although the file is in right path , it's doesn't success to load contents of file

the content of "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

the content of 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

i already tried to use 1-pod deintegrate 2-pod update

but still it's didn't work .

Collogue answered 28/11, 2020 at 2:12 Comment(3)
Removing these input and output parameters in the POD build phases and after that 'pod install' fixed it for me.Liable
Possibly related: github.com/CocoaPods/CocoaPods/issues/10670Mccarthy
Possible solution: https://mcmap.net/q/744781/-launchpackager-command-can-t-be-opened Also not forget opening Xcode using Rosetta mode: #71828225 King regards.Apocalyptic
M
26

This is what worked for me:

  1. delete the platforms and plugins folder
  2. remove the cached data rm -rf ~/Library/Caches/Cocoapods
  3. Remove Derived Data rm -rf ~/Library/Developer/Xcode/DerivedData
  4. run pod deintegrate
  5. run pod setup
  6. run pod install
  7. re run whatever build command you have to recreate your platforms and plugins folder

I think this error comes about because of an issue with pods not using semantic versioning. You can read more about this at https://gist.github.com/mbinna/4202236. Clearing derivedData prevent xcode from re-reading the old code

Manymanya answered 1/4, 2021 at 16:37 Comment(1)
Cleaning the project and removing Derived Data was sufficient for me. Thanks.Pitfall
L
1

One possibility is adding path in Input File List by mistake.

Make sure to add path in Input Files, not in Input File List

enter image description here

Lemley answered 29/9, 2022 at 6:14 Comment(1)
That was my case. I simply misclicked when added that path strings. Thank you!Tectonic
A
-1

I resolved this issue with....

  1. Go to your Targets in xcode
  2. Go to Build Phases
  3. Next go to Run Script and check it has any files in input file lists or output file lists
  4. Now, Remove files (input-files.xcfilelist / output-files.xcfilelist) using symbol - from Input file Lists and Output file Lists respectively
Angeliqueangelis answered 28/7, 2022 at 19:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.