How to view iOS app UI elements to write mobile test automation scripts in Eclipse? Attempting to use 'Appium Inspector' gives error, "Could not remove '<bundle id of the app>' from device"

I got rid of ‘Full Reset’ enabled option in Appium and it made the ‘Cannot remove app from device’ error go away. After that I get the error, ‘ideviceinstaller’ so I resolved that by reinstallating ideviceinstaller and following this link steps (Unable to install the application on Real Device using appium).

I also, got some error regarding device lockdown issue or something along those lines so I ran this command:
sudo chmod -R 777 /var/db/lockdown/

In addition to the above steps, you have to make sure your app has a development distribution certificate.

I tried a bunch of steps from above and finally ‘Appium Inspector’ would open up with my app.