Launch iOS app using appium (hooked session) during app debugging on Xcode

Im facing a bug that specifically only occur when the test launched by appium.
the step like :

  • open app
  • login
  • kill
    -relaunch using appium
  • the app logged out
    im trying to reproduce this manually bot did not happen, so i want to debug the app using xcode.
    is there any such a way to achieve this?