Skip to content

Bug: Latest xccurrentversion not being collected from data attr of a mixed_language_library target #3267

@thiagohmcruz

Description

@thiagohmcruz

Description

Seems similar to this older issue where on Xcode launch the .xccurrentversion file gets dirty since Xcode sees only the first version of the model and not the latest.

Reproduction steps

  • Checkout this branch
  • cd examples/integration
  • bazel run :xcodeproj-sim_arm64
  • open Integration.xcodeproj

Note on Xcode launch how this file gets dirty due to Xcode picking up the wrong version (Model.xcdatamodel instead of Model 2.xcdatamodel):

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   MixedLib/Model.xcdatamodeld/.xccurrentversion

Expected behavior

No dirty files on Xcode launch and the correct model version being picked up by Xcode

rules_xcodeproj version

79f26ec

Xcode version

26.0.1

Bazel version

7.x, 8.x

rules_apple version

4.0.1

rules_swift version

3.1.1

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions