1

I have a compiled program I wrote in native c, which i can run on the my Iphone using terminal and the command "./myCApp"

Is there a way to launch it through Code?

I've tried System("./myCApp") or popen("./myCApp","r+)

and both didn't work.

zaxy78
  • 1,406
  • 3
  • 19
  • 32
  • Does [this](http://stackoverflow.com/questions/412562/execute-a-terminal-command-from-a-cocoa-app) answer your question? EDIT: Actually, nevermind, that seems to be Mac only. – Kurt Spindler Mar 15 '12 at 11:47
  • Just guessing - maybe if you save it as part of application bundle? Or if that not works: you move it from bundle to /documents and try from there... – Rok Jarc Mar 15 '12 at 11:54

1 Answers1

0

I don't think you can launch a code in device programmatically unless it has some url scheme.

Vignesh
  • 10,205
  • 2
  • 35
  • 73