Hello @Daniebro,
Sorry to hear that, inheriting code is a difficult situation.
What I can suggest in this situation is to try and debug this project in a local environment: How to debug your build locally / "It works on my Mac/PC but not on bitrise.io"