I just published an article on App-o-Mat to show you how to create test builds from the command-line to use with Appium.
When you make GUI tests using XCUI directly in Xcode, it will automatically build the app for you when you run the test. Appium, however, is run completely outside of Xcode, so you must supply a build for it. The best way is to build from the command-line so that can control where the files end up.
This is the second in the series of how to write test scripts for iOS apps using Appium.