rules_xcodeproj
rules_xcodeproj copied to clipboard
Bug: Core Data code generation isn't supported
Describe the bug
https://github.com/buildbuddy-io/rules_xcodeproj/pull/288#issuecomment-1098303363
We now process Info.plist in Bazel, which can serve as an example of how to do this.
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.
I haven't heard additional complaints about this, so bumping it out of blocking 1.0.
π 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!
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.
Absolutely, thanks for the redirect. I'll see if I can work up a repro.
With BwX mode going away, this issue might become moot.