Xcode 10.2 更新问题构建系统错误 -1:无法加载文件列表的内容:输入/输出 xcfilelist
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/55505991/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 10.2 Update issue Build system error -1: Unable to load contents of file list: input/output xcfilelist
提问by Diptendu Das
After upgrading to Xcode 10.2 I am getting 2 errors
升级到 Xcode 10.2 后,我收到 2 个错误
:-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')
:-1: 无法加载文件列表的内容:“xxxxx/Pods/Target Support Files/Pods-xxxx/Pods-xxxxx-frameworks-Debug-input-files.xcfilelist”(在目标“xxxxx”中)
:-1: 无法加载文件列表的内容:“xxxxx/Pods/Target Support Files/Pods-xxxxx/Pods-xxxxx-frameworks-Debug-output-files.xcfilelist”(在目标“xxxxx”中)
I updated all my pod and changed build system to "Legacy Build System" but still getting the same build error
我更新了我的所有 pod 并将构建系统更改为“Legacy Build System”,但仍然遇到相同的构建错误
回答by madiver
I struggled with this for several hours today and this is what finally worked for me:
我今天为此挣扎了几个小时,这最终对我有用:
sudo gem update cocoapods --pre
pod update
- clean
- build
sudo gem update cocoapods --pre
pod update
- 干净的
- 建造
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.
从我读到的内容来看,这是 Xcode 10.2 中默认启用的新构建过程的一个问题,尽管我还没有在任何地方找到明确记录的解决方法。可能有比我描述的更优雅的解决方案。
回答by symbool
- delete 'Pods/', 'Podfile.lock', 'yourappname.xcworkspace'
pod deintegrate
pod install
- 删除“Pods/”、“Podfile.lock”、“yourappname.xcworkspace”
pod deintegrate
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
每次都遇到这个问题,用上面的方法解决,不知道为什么,怎么彻底解决
回答by Artheyn
To illustrate the answer of @nfranzmeier:
为了说明@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
andOutput Files Lists
sections by selecting each of them and clicking on the-
button
- 选择正确的目标
- 构建阶段
- 展开
[CP] Embed Pods Frameworks
脚本阶段 - 通过选择每个文件并单击按钮来删除
Input Files Lists
和Output Files Lists
部分下的文件-
And you're done!
大功告成!
回答by Shubham Ojha
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
回答by nfranzmeier
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
您可以编辑您的 xxxx.xcodeproj/project.pbxproj 文件并从 inputFileListPaths() outputFileListPaths() 中删除有问题的行 xxxinput-files.xcfilelist 和 xxxoutput-files.xcfilelist 使它们再次为空,然后保存并重建
回答by Dr Douglas GhD
For me, this was caused because I was setting up a custom configuration (.xcconfig) file for different environments.
I wasn't importing the Pods/Target Support Files/Pods-XXXXXX/Pods-XXXXXX.release.xcconfig
into my configuration file.
对我来说,这是因为我正在为不同的环境设置自定义配置 (.xcconfig) 文件。我没有将其导入Pods/Target Support Files/Pods-XXXXXX/Pods-XXXXXX.release.xcconfig
到我的配置文件中。
This guide helped me find the missing step. https://thoughtbot.com/blog/let-s-setup-your-ios-environments
本指南帮助我找到了缺失的步骤。 https://thoughtbot.com/blog/let-s-setup-your-ios-environments
Thanks Patrick.
谢谢帕特里克。
回答by Mahfuz
In my case
-> pod deintegrate
-> pod clean
-> pod install
then rebuild the project works fine.
My XCode = 11.3.1
回答by Oded Regev
For me (using Mac Mojave) using the above solutions didn't work..
对我来说(使用 Mac Mojave)使用上述解决方案不起作用..
I manage to successfully overcome this issue by installing RVM on my Mac via:
我通过在 Mac 上安装 RVM 成功地解决了这个问题:
curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable --rails
As described on this page.
如本页所述。
And then re-install cocoapods via:
然后通过以下方式重新安装 cocoapods:
gem install cocoapods
And lastly run again:
最后再次运行:
pod install
I hope this helps someone who was stuck endlessly like me :)
我希望这可以帮助像我一样无休止地卡住的人:)