How to run a source code of an app on appium

I have a source code file for an app. I am facing issues to connect it with appium after running it on Xcode Simulator.