MobileNativeFoundation / rules_xcodeproj

Bazel rules for generating Xcode projects.
MIT License
514 stars 81 forks source link

Bug: XCBuildData/PIFCache doesn't exist #2943

Closed 315567599 closed 5 months ago

315567599 commented 5 months ago

Description

PIFCache (/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-einijeybeftdgffqsashuprvowio/Build/Intermediates.noindex/ArchiveIntermediates/xxx/IntermediateBuildFilesPath/XCBuildData/PIFCache) doesn't exist. If you manually cleared Derived Data, you need to close and re-open the project for the PIFCache to be created again. Using the "Clean Build Folder" command instead (⇧ ⌘ K) won't trigger this error. If this error still happens after re-opening the project, please file a bug report here: https://github.com/MobileNativeFoundation/rules_xcodeproj/issues/new?template=bug.md

Reproduction steps

bt

Expected behavior

work

rules_xcodeproj version

1.16

Xcode version

15.2

Bazel version

6.1.1

rules_apple version

3.3.0

rules_swift version

1.16.0

Additional information

No response

brentleyjones commented 5 months ago

Do you have a minimal reproduction with steps? Otherwise we won't be able to help debug and fix this.

From the path it looks like this is from an Archive command, which we don't support.

315567599 commented 5 months ago

Do you have a minimal reproduction with steps? Otherwise we won't be able to help debug and fix this.

From the path it looks like this is from an Archive command, which we don't support.

yes, the error message came from xcode archive, xcode build work well. Now my question is: how to archive project if using rules_xcodeproj?

brentleyjones commented 5 months ago

https://github.com/MobileNativeFoundation/rules_xcodeproj/blob/main/docs/faq.md#does-the-archive-action-work

rules_apple now has a new xcarchive rule as well that you can use.