1 Reply
      Latest reply on Dec 21, 2016 2:17 PM by eskimo
      prabhatballa Level 1 Level 1 (0 points)

        Hello Folks,

        I am facing problem that Apple SimpleFTP code working fine for below ios 9.0, when i set target to 9.0 and compile code i can see that there are allmort all property of NSInputStream is deperecated.


        [self.networkStream setProperty:kCFBooleanFalse forKey:(id)kCFStreamPropertyFTPUsePassiveMode];

        and warning says that use NSURLSession for ftp request.


        but in NSURLSession there is no support / alternet for kCFStreamPropertyFTPUsePassiveMode


        it will be helpful if i can get alternate of kCFStreamPropertyFTPUsePassiveMode which supports ios 9.0 and above.





        • Re: nsurlsession + ftp + active mode
          eskimo Apple Staff Apple Staff (13,925 points)

          If you’re serious enough about FTP to want to support active mode, you should probably write (or acquire) your own FTP library.  Apple’s FTP APIs are quite limited:

          • NSURLSession has very basic FTP support, primarily designed for anonymous downloads.  Certainly there’s no way get NSURLSession into active mode.

          • As you’ve noticed, CFFTPStream was officially deprecated years ago.  Even if it weren’t, CFFTPStream is not exactly a full-featured FTP library.

          For more background to this, see this post.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"