Closed cdoky closed 1 year ago
@cdoky , can you provide more logs from the producer? That is the first time I see problems with zipping the content.
Preferably, please call that command log show ...
immediately after an error - macOS periodically cleans the events database.
@polac24 like this?
log show --predicate 'sender BEGINSWITH "xc"' --style compact --info --debug -last 10m
output.log
There is something wrong with your project setup. The log wants to zip x86_64 product, but as you are on MacStudio, that should be arm64
. For which ARCH does your project build? Did you clean DD before building the target (e.g. CMD+SHIFT+K)?
2023-01-18 11:56:36.914 E xcpostbuild[13862:bfe0fa] (CTMediator) Postbuild step failed with error: Error Domain=NSCocoaErrorDomain Code=260 "The file “x86_64” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CTMediator.build/Objects-normal/x86_64, NSFilePath=/Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CTMediator.build/Objects-normal/x86_64, NSUnderlyingError=0x149a04df0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Can you try building for a single architecture only (e.g. by settings ARCHS
Xcode build setting manually in the project) or xcodebuild ARCHS=arm64 ONLY_ACTIVE_ARCH=NO build ...
as suggested here?
Tried to reproduce a problem, but it works for me in a sample project: https://github.com/polac24/xcremotecache-183-repro ^ I built that from arm64 machine, Xcode 14.1. Xcodeprojects in the repo have build settings same as in the screenshot.
Could you prepare a project to reproduce?
@polac24 Thank you! It may be caused by our private library configuration. We need to check again.
Hi @cdoky, do you have any update on that?
@polac24 Sorry, I don't have time to explore that right now. I'll close the issue and update it when I have time to try again. Thank you very much for your support!
Hi, any update about this? i have same problem, i also has follow to build for specific arch only
xcodebuild ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO build ...
@dwirandytlvk, which version do you use? In https://github.com/spotify/XCRemoteCache/releases/tag/v0.3.21 we introduced some improvements, which may address that problem.
after i update into latest version i got
E xclibtool[82127:94e0e] Failed with: missingOutput. Args: ["/Users/dwi.herdinanto/ios/tvlk/tools/xcremotecache/xclibtool", "-V"]
2023-04-03 11:45:59.044 E xclibtool[82127:94e0e] Failed with: missingOutput. Args: ["/Users/dwi.herdinanto/ios/tvlk/tools/xcremotecache/xclibtool", "-V"]
2023-04-03 11:46:26.592 I xcswiftc[82290:951d9] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/dwi.herdinanto/ios-product/Traveloka/Pods/). Skipping extra configuration
2023-04-03 11:46:26.593 Df xcswiftc[82290:951d9] Fallbacking to compilation using swiftc.
The missing output is a side error, that might be fixed to improve code-completion, but it shouldn't affect the building phase. If you have a build failure or non-expected cache miss - please file a new issue - logs will be useful.
@polac24 okay, i have created separated issue here
My integration setup
Producer Logs
Pods/Carthage file
Environment
0.0.14
demo docker
Version 14.2 (14C18)
Post build stats
Others
OS: 12.6 (21G115) Mac: MacStudio