spotify / XCRemoteCache

Other
833 stars 52 forks source link

"error: missing input file" during building as a consumer #37

Closed akring closed 2 years ago

akring commented 2 years ago

Xcode config: Automatic integration

Backend: backend-example docker image

Error log:

error: missing input file
/Users/xxx/Library/Developer/Xcode/DerivedData/MyProject-grtwydkopfrbzbfwavurkuenidfb/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/7220286051759018287/MyProject-prefix.pch.dia:1:1: warning: Could not read serialized diagnostics file: error("Failed to open diagnostics file") (in target 'Target' from project 'MyProject')
Command ProcessPCH++ failed with a nonzero exit code

This happened during build as consumer. I had upload all the files to my server with producer mode. I crawled the network during build, and all the GET request from the server is succeed.

wfanforever commented 2 years ago

same issue here, as a workaround you can try disable the precompile prefix header in consumer mode.

akring commented 2 years ago

Thanks, but that's not a good idea for an Objective-C project 😂

SeanWit commented 2 years ago

same issue

samuelsainz commented 2 years ago

This is happening to me as well

iSalah commented 1 year ago

Same issue here. I've noticed that Xcode is trying twice to precompile my pch file:

I'm using Xcode 14.1 and my project has ObjC, C and Swift code.

polac24 commented 1 year ago

Hi @iSalah, could you provide a sample project? However, I created a blind patch #177 so maybe you can first verify if that fixes your issue for c-header.

iSalah commented 1 year ago

Thak you @polac24. How can I build the xccc wrapper from your branch to test the fix ? There are several targets I can build (xcprepare, xcprebuild, ...) but no xccc.

polac24 commented 1 year ago

Hi @iSalah!

A wrapper for the clang compilation is a C program, generated and compiled during the xcprepare step

It has a custom flow, for better performance. You can read more about that here

iSalah commented 1 year ago

@polac24 I confirm it works with your fix, thank you !