It is unclear to me how to properly stop and deallocate the MPPGraph. I created a framework very similar to this. Every time a dealloc is called in some way this exception is thrown. Thread 1: Exception: "waitUntilDoneWithError: should not be called on the main thread"
.
I don't know how to not call it in the main thread and was hoping someone had some insight on this.
Here you can find the swift code that is calling the mediapipe framework. This example has been created with the framework that can be found here.