We need go to the iOS project folder, and use Xcode to generate a .app package to be tested by simulator:
cd ~/Documents/appium-master/sample-code/apps/TestApp/ xcodebuild -sdk iphonesimulator6.1