This week I was trying to deploy my Ionice app NeoTrack to my device when suddenly an error appeared telling me that it could not find the DeviceSupport directory. That was annoying as it was really blocking. In this article I will show you how I have solved that.

Unable to locate DeviceSupport

When you deploy or build an app for iOS using the Ionic CLI you might encounter the following error message:

Unable to locate DeviceSupport directory. This probably means you don’t have Xcode installed, you will need to launch the app manually and logging output will not be shown!

To solve this you might need to create a symbolic link by following these steps:

  1. Open a terminal window and change directory to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
  1. In my case the folder 10.3 was missing but showed a folder called 10.3.1 (14E8301)
  2. Create a symbolic link by entering the following command:
sudo ln -s 10.3.1\ \(14E8301\)/ 10.3

After that your screen could look like the one below. Notice the little arrow on the 10.3 folder? That is our symbolic link! Whenever you would like to remove it just delete it in the finder or use the ‘rm’ or ‘unlink’ command from the terminal window again.

 

Happy deploying!