Failed to add app variants to bare project

I’ve followed the instructions on the official Expo site for adding app variants to bare repositories, and I’m seeing a build error on iOS.

Has anyone else run into issues when trying to install app variants in a bare project?

Here’s the error I’m seeing when running a build:

❌  error: Build input file cannot be found: '/Users/expo/workingdir/build/ios/Pods/Target Support Files/Pods-immersely/ExpoModulesProvider.swift'.
Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'immersely-dev' from project 'immersely')

This guide does not cover a case where you have multiple targets. I never configured stuff like that, but I think you need to have a separate one signal target for each of your new targets.

Also, I noticed that you have a bunch of configurations for managed projects, but your project is bare. Is this misconfiguration, or intentional?

1 Like

Ok thanks so much for checking this out! Let me try configuring multiple one signal targets.

I think some of the managed configuration is left over from before I ejected the project. I do occasionally run expo prebuild, so I think maybe I was keeping some of the config for that.

You might want to run npx expo prebuild --clean occasionally. Sometimes npx expo prebuild is not enough. But note that this will delete your android and ios directories and regenerate them from scratch. So any changes you have made to the native projects will need to be redone.