spotify / XCRemoteCache

Other
825 stars 50 forks source link

Postbuild step failed with error #183

Closed cdoky closed 1 year ago

cdoky commented 1 year ago
- Postbuild step failed with error: zipFail
- Postbuild step failed with error: statusError("Failed command", 1)
- Extra config override failed with missingConfigurationFile
- hit_count: 0

My integration setup

Producer Logs

2023-01-17 15:18:52.688 E  xcpostbuild[89311:9bb08d] (RxDataSources) Postbuild step failed with error: statusError("Failed command", 1)
2023-01-17 15:18:52.688 E  xcpostbuild[89311:9bb08d] (RxDataSources) Postbuild step failed statusError("Failed command", 1)
2023-01-17 15:18:52.699 I  xcswiftc[89316:9bb09a] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:52.699 Df xcswiftc[89316:9bb09a] Fallbacking to compilation using swiftc.
2023-01-17 15:18:53.255 I  xcpostbuild[89325:9bb0c0] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:53.257 I  xcpostbuild[89325:9bb0c0] (LibAppTrack) Found url to remapp: file:///Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products/. Remapping: /Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products
2023-01-17 15:18:53.257 I  xcpostbuild[89325:9bb0c0] (LibAppTrack) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp/Pods
2023-01-17 15:18:53.257 I  xcpostbuild[89325:9bb0c0] (LibAppTrack) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/../. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp
2023-01-17 15:18:53.264 I  xcpostbuild[89327:9bb0c7] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:53.266 I  xcpostbuild[89327:9bb0c7] (LibExtensions) Found url to remapp: file:///Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products/. Remapping: /Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products
2023-01-17 15:18:53.266 I  xcpostbuild[89327:9bb0c7] (LibExtensions) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp/Pods
2023-01-17 15:18:53.266 I  xcpostbuild[89327:9bb0c7] (LibExtensions) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/../. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp
2023-01-17 15:18:53.561 E  xcpostbuild[89325:9bb0c0] (LibAppTrack) Postbuild step failed with error: zipFail
2023-01-17 15:18:53.561 E  xcpostbuild[89325:9bb0c0] (LibAppTrack) Postbuild step failed zipFail
2023-01-17 15:18:53.562 E  xcpostbuild[89327:9bb0c7] (LibExtensions) Postbuild step failed with error: zipFail
2023-01-17 15:18:53.562 E  xcpostbuild[89327:9bb0c7] (LibExtensions) Postbuild step failed zipFail
2023-01-17 15:18:53.586 I  xcswiftc[89332:9bb0d1] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:53.587 Df xcswiftc[89332:9bb0d1] Fallbacking to compilation using swiftc.
2023-01-17 15:18:53.976 I  xcpostbuild[89340:9bb0f1] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:53.978 I  xcpostbuild[89340:9bb0f1] (Logging) Found url to remapp: file:///Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products/. Remapping: /Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products
2023-01-17 15:18:53.978 I  xcpostbuild[89340:9bb0f1] (Logging) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp/Pods
2023-01-17 15:18:53.978 I  xcpostbuild[89340:9bb0f1] (Logging) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/../. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp
2023-01-17 15:18:54.553 E  xcpostbuild[89340:9bb0f1] (Logging) Postbuild step failed with error: statusError("Failed command", 1)
2023-01-17 15:18:54.553 E  xcpostbuild[89340:9bb0f1] (Logging) Postbuild step failed statusError("Failed command", 1)
2023-01-17 15:18:54.590 I  xcswiftc[89347:9bb0ff] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:54.590 Df xcswiftc[89347:9bb0ff] Fallbacking to compilation using swiftc.
2023-01-17 15:18:55.157 I  xcpostbuild[89357:9bb126] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:55.159 I  xcpostbuild[89357:9bb126] (LogDog) Found url to remapp: file:///Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products/. Remapping: /Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products
2023-01-17 15:18:55.159 I  xcpostbuild[89357:9bb126] (LogDog) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp/Pods
2023-01-17 15:18:55.159 I  xcpostbuild[89357:9bb126] (LogDog) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/../. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp
2023-01-17 15:18:55.733 E  xcpostbuild[89357:9bb126] (LogDog) Postbuild step failed with error: statusError("Failed command", 1)
2023-01-17 15:18:55.733 E  xcpostbuild[89357:9bb126] (LogDog) Postbuild step failed statusError("Failed command", 1)
2023-01-17 15:18:55.773 I  xcswiftc[89365:9bb145] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:55.774 Df xcswiftc[89365:9bb145] Fallbacking to compilation using swiftc.
2023-01-17 15:18:56.192 I  xcpostbuild[89377:9bb190] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:56.193 I  xcpostbuild[89377:9bb190] (RxAlamofire) Found url to remapp: file:///Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products/. Remapping: /Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products
2023-01-17 15:18:56.193 I  xcpostbuild[89377:9bb190] (RxAlamofire) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp/Pods
2023-01-17 15:18:56.193 I  xcpostbuild[89377:9bb190] (RxAlamofire) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/../. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp
2023-01-17 15:18:56.761 E  xcpostbuild[89377:9bb190] (RxAlamofire) Postbuild step failed with error: statusError("Failed command", 1)
2023-01-17 15:18:56.761 E  xcpostbuild[89377:9bb190] (RxAlamofire) Postbuild step failed statusError("Failed command", 1)
2023-01-17 15:18:56.793 I  xcswiftc[89389:9bb1c8] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:56.794 Df xcswiftc[89389:9bb1c8] Fallbacking to compilation using swiftc.
2023-01-17 15:18:57.507 I  xcpostbuild[89397:9bb1f9] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:57.509 I  xcpostbuild[89397:9bb1f9] (LibNetworks) Found url to remapp: file:///Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products/. Remapping: /Users/cc/Library/Developer/Xcode/DerivedData/iOSApp-ehajmvhhkkzyqhfzhjhrmoncaaod/Index.noindex/Build/Products
2023-01-17 15:18:57.509 I  xcpostbuild[89397:9bb1f9] (LibNetworks) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp/Pods
2023-01-17 15:18:57.509 I  xcpostbuild[89397:9bb1f9] (LibNetworks) Found url to remapp: file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/../. Remapping: /Users/cc/WorkSpace/iOSModular/iOSApp
2023-01-17 15:18:57.823 E  xcpostbuild[89397:9bb1f9] (LibNetworks) Postbuild step failed with error: zipFail
2023-01-17 15:18:57.823 E  xcpostbuild[89397:9bb1f9] (LibNetworks) Postbuild step failed zipFail
2023-01-17 15:18:57.851 I  xcswiftc[89401:9bb20a] Extra config override failed with missingConfigurationFile(user.rcinfo -- file:///Users/cc/WorkSpace/iOSModular/iOSApp/Pods/). Skipping extra configuration
2023-01-17 15:18:57.852 Df xcswiftc[89401:9bb20a] Fallbacking to compilation using swiftc.
 

Pods/Carthage file

plugin 'cocoapods-xcremotecache'
xcremotecache({
    'cache_addresses' => ['http://localhost:8091/cache/pods'], 
    'primary_repo' => 'git@gitlab.cc:dev/iOSApp.git',
    'mode' => 'producer',
    'final_target' => 'iOSApp'
})
 

Environment

Post build stats

hit_count: 0
miss_count: 261
local_cache_bytes: 0
indexing_hit_count: 0
indexing_miss_count: 0 

Others

OS: 12.6 (21G115) Mac: MacStudio

polac24 commented 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.

cdoky commented 1 year ago

@polac24 like this? log show --predicate 'sender BEGINSWITH "xc"' --style compact --info --debug -last 10m output.log

polac24 commented 1 year ago

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?

cdoky commented 1 year ago

image

output.log

polac24 commented 1 year ago

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?

cdoky commented 1 year ago

@polac24 Thank you! It may be caused by our private library configuration. We need to check again.

polac24 commented 1 year ago

Hi @cdoky, do you have any update on that?

cdoky commented 1 year ago

@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!

dwirandytlvk commented 1 year ago

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 ...

polac24 commented 1 year ago

@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.

dwirandytlvk commented 1 year ago

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.
polac24 commented 1 year ago

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.

dwirandytlvk commented 1 year ago

@polac24 okay, i have created separated issue here