Skip to content

Project Context: "Null Installer" assert hit when using Prefab Variant only on built version #285

Description

@andresagr98

Describe the bug
The project context resolves just fine in Editor but, in runtime it will hit a "Null installer" error.

To Reproduce
Create a project context prefab outside of the assets/resources folder.
Add two mono installers to it. Can be anything.
Create a prefab variant of the project context, name it "ProjectContext" and place in assets/resources.
Test in Editor and build, works.
Now delete one of the mono installer scripts. Remove references to it on the base prefab and the variant if needed.
Test in Editor and build. Editor succeeds installation but built version hits "null installer".

Expected behavior
It should work the same on both Editor and build.

Extenject and Unity info (please complete the following information):

  • Zenject version: 9.2.0
  • Unity version: 2022.2.16
  • Project's scripting backend: IL2CPP
  • Runtime platform: iOS

Additional context
The only way I've found to fix this is to delete the variant and create a new variant from the original prefab.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions