Xcode 10.2 Update issue Build system error -1: Unable to load contents of file list: input/output xcfilelist

☆樱花仙子☆ 提交于 2019-12-18 12:45:33

问题


After upgrading to Xcode 10.2 I am getting 2 errors

:-1: Unable to load contents of file list: 'xxxxx/Pods/Target Support Files/Pods-xxxx/Pods-xxxxx-frameworks-Debug-input-files.xcfilelist' (in target 'xxxxx')

:-1: Unable to load contents of file list: 'xxxxx/Pods/Target Support Files/Pods-xxxxx/Pods-xxxxx-frameworks-Debug-output-files.xcfilelist' (in target 'xxxxx')

I updated all my pod and changed build system to "Legacy Build System" but still getting the same build error


回答1:


I struggled with this for several hours today and this is what finally worked for me:

  1. sudo gem update cocoapods --pre
  2. pod update
  3. clean
  4. build

From what I've read, this is an issue with the new build process that is enabled by default in Xcode 10.2 though I've not found the workaround clearly documented anywhere yet. There may be a more elegant solution than what I described.




回答2:


  1. delete 'Pods/', 'Podfile.lock', 'yourappname.xcworkspace'
  2. pod deintegrate
  3. pod install

it's work for me

I have encountered this problem every time, using the above method to solve, I do not know why, how to completely solve




回答3:


To illustrate the answer of @nfranzmeier:

Go to your project:

  • Select the right target
  • Build Phases
  • Unfold [CP] Embed Pods Frameworks script phase
  • Remove the files under Input Files Lists and Output Files Lists sections by selecting each of them and clicking on the - button

And you're done!




回答4:


You can just edit your xxxx.xcodeproj/project.pbxproj file and delete the offending lines xxxinput-files.xcfilelist and xxxoutput-files.xcfilelist from the inputFileListPaths() outputFileListPaths() so they're empty again and then save it and rebuild




回答5:


This solved my problem:

Open **Terminal**
1) run -> pod deintegrate
2) run -> pod install

In **Xcode**
3) Click Product Menu
4) Keep Pressing Option Button
5) Click Clean Build Folder
6) Run


来源:https://stackoverflow.com/questions/55505991/xcode-10-2-update-issue-build-system-error-1-unable-to-load-contents-of-file-l

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!