Unable to do spy/record for ios because of an error

I get the above error when trying to use spy/record with mobile. After this, even if I try to run the app through Appium desktop it doesnt work. I have to install ios-deploy again to fix this but that again works only for appium desktop. This was for device iphone 6s plus ios11.2.1, appium 1.7.2, katalon studio 5.3, Mac os High sierra 10.13.

Screenshot (10).png