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

Diptendu Das picture Diptendu Das · Apr 4, 2019 · Viewed 29.3k times · Source

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

Answer

madiver picture madiver · Apr 4, 2019

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.