I have changed the bit of code you indicated me and the AR application stoped crashing but the issue that I have now is that the tracking does not seems to work. More precisely, the UBT example (“San Fransisco Apartment”) is only tracking my orientation and not my translation and the AR examples (“BallPhysics” and “Simple”) print a “Tracking Lost” Message when I push the scan Button.
Finally when I tried to re-scan multiple times I had this exception in my Xcode followed by the crash of the application:
2018-07-18 11:05:26.785198+0200 StructureSDKAR[901:198099] *** Terminating app due to uncaught exception ‘STInvalidInitialPoseException’, reason: ‘The initial pose is incorrect and has a NAN determinant.’
*** First throw call stack:
(0x1854aad8c 0x1846645ec 0x103913454 0x10397938c 0x10307e150 0x10307f7b4 0x102d29760 0x102d272bc 0x102e3e6e4 0x102fff50c 0x102e7068c 0x102e70218 0x102e6fb6c 0x1030596a8 0x103903030 0x103332778 0x1033392c0 0x10333da28 0x1031bc114 0x10326c9c8 0x1030bf890 0x102d10960 0x10307c8e4 0x10307c840 0x10391ddec 0x103a69608 0x103a9be90 0x184d9caa0 0x184d9ca60 0x184da965c 0x185453070 0x185450bc8 0x185370da8 0x187356020 0x18f390758 0x102d09810 0x184e01fc0)
libc++abi.dylib: terminating with uncaught exception of type NSException
I hope that this problem can be solved, and thank you in advance for your help.