TestFlight same builds - one works, the other crashes

Hi there,

I am developing an app where we can scan and create an OBJ out of the scanner.

I have launched my first build in the TestFlight and it works just fine.

Afterwards, without making any changes whatsoever, I archived the same app, to create another build and uploaded in TestFlight, just to test the two builds.

As you can guess from the title, the first build works, but the second build crashes. As soon as I open the camera it crashes.

I have added the privacy camera usage in the info.plist. Please find the crash log here:

By looking at it, it says that it stumbles on a nil value. But why does the first build works and not the second one?

Also, I would have loved to post the code where it potentially unwraps the nil value, but unfortunately it comes from a framework that I do not have access of.

Lastly, I would like to mention that any time that I launch the app from Xcode to my iPhone11, it always works. It is only in TestFlight that it crashes.

Does anyone know what is going on? I really appreciate the help!

Thanks

Martin