rules_xcodeproj icon indicating copy to clipboard operation
rules_xcodeproj copied to clipboard

Bug: Core Data code generation isn't supported

Open brentleyjones opened this issue 3 years ago β€’ 7 comments
trafficstars

Describe the bug

https://github.com/buildbuddy-io/rules_xcodeproj/pull/288#issuecomment-1098303363

brentleyjones avatar May 03 '22 23:05 brentleyjones

We now process Info.plist in Bazel, which can serve as an example of how to do this.

brentleyjones avatar Sep 01 '22 21:09 brentleyjones

https://github.com/buildbuddy-io/rules_xcodeproj/commit/cf20e53117780eb0912a3314948bccc83af872bf is another example of how we do some post-processing in Bazel for use in Xcode.

brentleyjones avatar Sep 16 '22 19:09 brentleyjones

I haven't heard additional complaints about this, so bumping it out of blocking 1.0.

brentleyjones avatar Jan 26 '23 16:01 brentleyjones

πŸ‘‹ Hey @brentleyjones I think we just hit this one… we are preparing to generate:

OurSpecialModel.xcdatamodeld
└── 1.0.xcdatamodel
    └── contents // <-- we are generating this file

The specific error I saw when trying to generate the project (BwB):

ERROR: Internal precondition failure:
"path/to/OurSpecialModel.xcdatamodeld" `XCVersionGroup` not found in `elements`
Please file a bug report at https://github.com/MobileNativeFoundation/rules_xcodeproj/issues/new?template=bug.md

Please feel free to re-direct if this error doesn't seem related to this issue. And thanks for such an amazing tool!

wileykestner avatar Jul 10 '23 15:07 wileykestner

This is a different error. Codegen not being supported is referred to BwX mode Xcode code generation of core data classes.

Can you file a new issue, with a repro, and I'll look into a fix. I think I know what the root cause of it is.

brentleyjones avatar Jul 10 '23 16:07 brentleyjones

Absolutely, thanks for the redirect. I'll see if I can work up a repro.

wileykestner avatar Jul 10 '23 16:07 wileykestner

With BwX mode going away, this issue might become moot.

brentleyjones avatar Nov 06 '23 21:11 brentleyjones