binary framework workflow without duplicating project files

I'm using an xcframework to hide code.


So I've got an App.xcodeproj and the xcframework in one repo visible to contractors.


Then I have another private project which has everything in App.xcodeproj except has the framework project as a sub-project for easier development instead of the xcframework.


This works reasonably well except I have to keep the internal (private) and external projects in sync. Changes the contractors make to App.xcodeproj have to be manually brought over to the internal project, updating paths accordingly.


Is there a better way to do this?