2

Can someone point me in the direction of an Objective-C (or c/c++) library, or tutorial (Objective-C) that teaches uploading or downloading via FTP? Preferably one that shows how to download a file to a temp dir, then upload it later? I don't mind one aimed at OSX, but my goal is the iPhone / iPad. I'm still googling, but the results are slim at best.

EDIT: This looks like it'll do the trick:

http://developer.apple.com/library/ios/#samplecode/SimpleFTPSample/Introduction/Intro.html

Thanks guys!

Josh
  • 12,448
  • 10
  • 74
  • 118

1 Answers1

4

https://github.com/karelia/ConnectionKit should do the job

MCannon
  • 4,011
  • 2
  • 16
  • 12
  • That is the one I looked at but couldn't get it to compile. It said base-sdk missing, so I changed it to OSX 10.6, and there were 90 some errors. – Josh Nov 25 '10 at 22:06
  • It wants 10.4u, but all I have is 10.5 / 10.6, when I set it to 10.6 I get these: http://www.qfpost.com/download.do?get=6c35fdb7ee20ffb8ab4b426df8fcf088 – Josh Nov 25 '10 at 22:25
  • I'd upload that to my site, but ftp transfer is blocked where I am atm :O – Josh Nov 25 '10 at 22:26
  • @josh perhaps try this: http://s7ftprequest.googlecode.com/files/s7ftprequest-basic-release.zip is an earlier version of the s7ftp that apparently works, ive not used it personally but people seem to have had success on the iPhone platform with it. – MCannon Nov 25 '10 at 22:26
  • Well I turned off warnings as errors (i don't remember turning it on...) but, now it says: No launchable executable present at path: /Users/MacBook/Downloads/karelia-ConnectionKit-v1.2.3-0-g21b2243/karelia-ConnectionKit-21b2243/build/Debug/DropletHelper.app – Josh Nov 25 '10 at 22:30
  • Cleaning all targets... But no dice. – Josh Nov 25 '10 at 22:33
  • 1
    hmmm, its mainly the framework which will be in the products directory that you need, but if you want it for the iPhone then i dont know if we can get this to work. I did just find this in the apple docs, http://developer.apple.com/library/ios/#samplecode/SimpleFTPSample/Introduction/Intro.html so hopefully this will help? – MCannon Nov 25 '10 at 22:37
  • Reextracted, moved the dir, renamed, cleaned, build, fail: No launchable executable present at path: /Users/MacBook/Downloads/connectionkit/build/Debug/DropletHelper.app – Josh Nov 25 '10 at 22:37
  • Spectacular! I can't test here, but it looks promising! You should edit your original post, so I can accept it :) Well, I can compile it here, and it works, but port 20 is blocked :\ – Josh Nov 25 '10 at 22:43