Closed rudrankriyam closed 2 years ago
Seems that you integrate your project twice: once manually (xcprepate integrate
) and with a CocoaPods plugin.
If you use a CocoaPods plugin, calling xcprepare integrate
is redundant.
Ah. That makes sense.
Running another build after removing xcprepare integrate
gives:
error: Postbuild step failed unsuccessfulResponse(status: 403)
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution [XCRC]\ Postbuild /Users/builder/Library/Developer/Xcode/DerivedData/XCRemoteCacheExample-hhatcayujzjpinbwisqztfyoxjld/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/Kingfisher.build/Script-46EB2E00000B90.sh (in target 'Kingfisher' from project 'Pods')
After pod install
, I do get XCRemoteCache enabled, though. Looks like it is related to the pod?
I assume you are running a producer build. The 403 response may mean that you are not authorized to make PUT requests to upload files. For more logs, have a look on https://github.com/spotify/XCRemoteCache/blob/master/docs/FAQ.md#how-can-i-find-xcremotecache-logs
Running a project in producer mode without the cocoapods plugin works fine, so I know that the AWS server is working. On building on a local machine, I saw that after doing pod install
, XCRemoteCache removes the following values from the rcInfo file:
aws_secret_key: redacted
aws_access_key: redacted
aws_region: ap-south-1
aws_service: s3
And hence, I end up getting the 403 response. Do you know what's the issue?
Update: Manually adding the above four values in rcInfo in both the project and in the pods directory after pod install works.
Is it a bug or do I've set the values in the Podfile too?
Update: I had to set it in the Podfile too, my mistake. Closing this. Thanks for the help!
I've been trying to build the cache on CI/CD in
producer
mode, and it works fine on a normal project.After adding the cocoapods plugin in an empty project, I'm getting the following error:
rcinfo file:
Podfile:
Command to build project:
Any help on what I'm doing wrong is appreciated.