I'm developing an application in swift 4. In it, I want to upload multiple images to FTP server. I have tried to do with https://github.com/Constantine-Fry/rebekka but could not build getting error saying
Xcode 9 does not support building or migrating Swift 2.x targets.
Also tried with https://gist.github.com/Nirma/fb9991be776107d17fdcd6ed2aa02876 . But some of the APIs are deprecated. Apple sample project is in objective C. Can anybody please help me to go forward in this case?
I've implemented FilesProvider library to abstract FTP/FTPS, WebDAV, Dropbox and OneDrive and providing a high level, FileManager like API to deal with these.
You can use FilesProvider library to deal with FTP. It doesn't use deprecated CFWriteStreamCreateWithFTPURL API and implements FTP protocol from scratch.
Please read Readme before using. You can see a sample implementation for iOS here.
Related
I would like to extract some information from the App Store receipt in a tvOS app. I thought I could use the Security framework, but the following two header files are missing:
#import <Security/SecAsn1Types.h>
#import <Security/SecAsn1Templates.h>
In the OS X SDK these header files exist. Was ASN.1 support removed from the public tvOS SDK? Do I have to use OpenSSL to handle the receipt?
Security Framework is not included in Apple tvOS framework hence you cannot see this library and imports.
Please follow this link for more clarification about listing of frameworks.
Apple frameworks listing
Also for the discussion forum guys already mentioned that in case you need to use the secure storage you can only do it using and CloudKit framework only.
Discussion forum for apple local storage issue
I am trying to create a framework since I am developing a library.
I have Googled a lot, but didnt find any proper tutorial to create. Please give me some suggestions and steps to be followed to create a iOS framework.
I am Using iOS 6 and XCode 4.5.
I followed this framework tutorial with a lot of success. My callout from the tutorial is that it doesn't specifically mention (from what I recall) building the target, then the bundle before archiving the bundle. I also found it easier to directly copy the archived bundle from its source directory instead of relying on the script.
I have my drupal xml-rpc service setup, and now I want to retrieve content for my iphone app.
I'm attempting to use https://github.com/eczarny/xmlrpc, however I dont know where to begin. How do I add the project to my own project for use? I've added a static library before; is it the same process? Just drag the proj file to my project and add the xml-rpc library?
Any tips would be appreciated.
Try dragging the project file for xmlrpc framework into the code list in XCode for starters. Next make the framework target in the xmlrpc framework a build dependency. Finally add the xmlrpc.framework to your linked frameworks. Exactly how you do this depends on whether you are using XCode 3 or 4
Closest thing I've found is How to incorporate WebSockets into a Cocoa application, but the answers only pointed to an outdated library.
Does anyone know about a WebSockets library compatible with iOS 4.x?
I've also read about Pusherapp, and, as good as the service could be, I would prefer to use my own WebSockets server.
You can check out the UnitT Web Socket Client. It is intended for use in iOS apps using Objective-C. It works with both ws & wss.
I am the author and have been using it in some of my projects with success. Let me know if you run into any trouble and I will do what I can to help.
Found this post in a google search for iOS WebSockets and wanted to put an updated answer.
Anyways, Zimt and Unitt's client don't support the latest standard (at the time of writing this).
(disclaimer: author of SocketRocket)
We just released a new library that has no external dependencies, supports RFC 6455 completely, and works with iOS 4.x+.
It's called SocketRocket and can be found here
You could make a web application using one of several Cocoa-like libraries and then convert it to a native app using something like PhoneGap/Apache Cordova.
Cappuccino - Make webapps using Objective-J and Cocoa-like API.
WebSockets for Cappuccino
SproutCore - Apple's Cocoa for the web
Toth - a multi-user SproutCore library that uses WebSockets.
For the server side there are lots of options. Just search for "websockets server" on github.com.
I created a package for iOS/Objective-C and TLS taking into account the new iOS13 TLS restrictions. It works with a NodeJS TLS server how I use it. Hope it helps, feel free to contribute.
https://github.com/eamonwhiter73/IOSObjCWebSockets
I have an app which generates some files in the app directories
I need users to be able to access the files from another device/computer via file sharing over wifi, using a web browser, a ftp client or some similar method.
Can the iPhone act as a http server and ftp server by itself or do I need to do some programing to make the http server and ftp server by myself?
Thanks
interdev
The code examples for Erica Sadun's rather excellent 3.0 edition of the iPhone Developer's Cookbook are downloadable at github. She has two chapters on various modes of networking including an example HTTP server.
The iPhone has no built-in web or ftp server. So if you want this functionality to be part of your application then you will have to include one in your code.
CocoaHTTPServer is an excellent library for this purpose, widely used also in iPhone apps. It has a good documentation and working example projects, even for iPhone.