Deploy on Libtorch to device use .ipa

Hi, everyone.
From this tutorial PyTorch Mobile Runtime for iOS - YouTube, I can run an app on my device, everything is easy and it has a good result if deploy directly from Xcode.
But when deploy my app by .ipa file through my app have many problems:

  • Crash and stop an app.
  • Return bad result (I used same pic for test)

Please help me, thanks.