Codegen classes not created when building on Bitrise

Bitrise Build Issue Report template

Description of the issue

I’ve got CoreData models in my iOS app. And with Xcode 8.0 there’s a new functionality where you can specify “Codegen” for an entity. If you specify “Class Definition” the class is defined in a auto-generated class created by Xcode (which resides in DerivedData).

This classes aren’t created for one of my libraries. Which gives me the error:
“error: no such file or directory: …/Person+CoreDataClass.swift”

It works if I run “bitrise run primary” localy (and I’ve made sure to clean DerivedData before running it). I’m using this setting in other apps on bitrise and there it’s working fine as well.

Environment:

On bitrise.io with stack Xcode 8.2.x, on macOS 10.12 (Sierra)

If on Bitrise.io: which stack? If not on Bitrise.io: on what operating system? (Plus any other information you can share)

Which build Step causes the issue and which version of the step?

xcode-test@1.18.1

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO

  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : YES/NO

  • If you have multiple different build configurations (workflows), does the issue affect all/more than one? : YES/NO

  • Does upgrading the build Step to the latest version help? : It’s on latest

  • When did the issue start? : When the CoreData model was created

Linux/Android stack builds

Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: https://bitrise-io.github.io/devcenter/docker/run-your-build-locally-in-docker/ .

It can not be reproduced locally.

Other stacks

Can it be reproduced by running the build locally with our CLI ( https://www.bitrise.io/cli ), after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )?

It can not be reproduced locally with bitrise tool.

Build log

Please attach the build log (you can download the build log from the build’s page, once the build is finished, using the “Download log” button - floating at the bottom right corner of the log viewer), or if you can’t attach the whole log then send the full log through a private channel (e.g. email - https://www.bitrise.io/contact ), with a link to the related GitHub issue.

Thanks for reporting this issue!

This seems to be a duplicate of CoreData generated file problem - I’ll merge it there, and you can find possible solutions there too.

A post was merged into an existing topic: CoreData generated file problem