3

Basically from what I understand is that if my app wants to use serial communication via the dock connector (pins 12 / 13) the app has to live outside the app sandbox folder. Now I don't want to have to ssh into my phone and copy theAppFolder.app to /Applications/ everytime I click Run in Xcode (that would just be silly).

Now while doing some research I came across this blog post. Down in the comments, someone gives the idea of what I am talking about in this question.

Now is his solution the best way to do what I am thinking of doing, or is there a more elegant solution?

Mick MacCallum
  • 129,200
  • 40
  • 280
  • 281
ipatch
  • 3,933
  • 8
  • 60
  • 99
  • Have you tried the suggestion of the xcode build phase? It sounds like a sensible plan to me – Ben Clayton Jul 19 '12 at 08:47
  • I haven't tried it, but I don't think that link will actually **run** your app from /Applications. I think it just **installs** it there, as the last step in your build. Do you need a solution that runs and debugs directly from Xcode? – Nate Jul 19 '12 at 10:28
  • @Nate yeah if I could still debug the app on the device, from within Xcode, that would be awesome. – ipatch Jul 19 '12 at 19:47

1 Answers1

0

A bit late, but I use Xcode's build command with a post-build script to get my app on my jailbroken iOS device and also start it using a tool from Cydia (it will actually run the app from the /Applications directory). Check out my answer here for more info. The thing still missing is the ability to debug, but I've gotten used to using NSLog and tailing the syslog.

Community
  • 1
  • 1
newenglander
  • 2,019
  • 24
  • 55
  • Wow, I forgot I asked this question. I ended up creating a shell script that updates my repo, which I then install via cydia. http://pastie.org/5644673 – ipatch Jan 07 '13 at 22:26
  • You could also use variables from Xcode (see http://stackoverflow.com/a/6911421/381233) in your script (assuming it's called by Xcode) to make it more general to enable use on other projects without changing directory paths, etc. – newenglander Jan 08 '13 at 08:20
  • hmm, haven't really thought of any other projects at the moment. – ipatch Jan 08 '13 at 18:55