Synchronous requests for AFNetworking 1.x, 2.x, and 3.x

Overview

AFNetworking-Synchronous

A minimal category which extends AFNetworking to support synchronous requests.

Version License Platform Downloads Build

It's synchronous

Usage

3.x

  pod 'AFNetworking', '~> 3.0'
  pod 'AFNetworking-Synchronous/3.x'
#import <AFNetworking.h>
#import <AFHTTPSessionManager+Synchronous.h>

AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
NSError *error = nil;
NSData *result = [manager syncGET:@"/document/123"
                       parameters:paramDict
                             task:NULL
                            error:&error];

Your synchronous request will never return if it is dispatched on the session manager's completion queue.

You really should not perform a synchronous network request on the main thread on iOS, as it's likely to cause a crash when run outside the debugger. You probably should not on OS X either, as it's likely to cause lags in the UI.

If you must do so, create a separate queue for the completion handlers:

manager.completionQueue = dispatch_queue_create("AFNetworking+Synchronous", NULL);

2.x

  pod 'AFNetworking', '~> 2.0'
  pod 'AFNetworking-Synchronous/2.x'
#import <AFNetworking.h>
#import <AFHTTPRequestOperationManager+Synchronous.h>

AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
NSError *error = nil;
NSData *result = [manager syncGET:@"/document/123"
                       parameters:paramDict
                        operation:NULL
                            error:&error];

Currently there is no support for AFHTTPSessionManager.

1.x

  pod 'AFNetworking', '~> 1.0'
  pod 'AFNetworking-Synchronous/1.x'
#import <AFNetworking.h>
#import <AFHTTPRequestOperationManager+Synchronous.h>

AFHTTPClient *client = [[AFHTTPClient alloc] initWithBaseURL:...];
NSError *error = nil;
NSData *result = [client synchronouslyGetPath:@"/document/123"
                                   parameters:paramDict
                                    operation:NULL
                                        error:&error];

Discussion

First, consider adopting an asynchronous design

Before you decide to use this category, consider whether you can adopt an asynchronous design instead. As @mattt wrote, asynchronism a tough thing to get your head around, but it's well worth the mental overhead. Rather than creating methods that fetch and return network data, use blocks or delegate methods to call back with the results when you have them.

Using the asynchronous API has many advantages:

  • When you start an operation on the main thread, you return control to the run loop immediately, so your UI can remains responsive. Blocking the main thread for a long time is never a good idea. "Be responsive," Apple urges in the OS X user experience guidelines. Asynchronous network operations allow you to do that.
  • AFNetworking makes asynchronous code easy to write and easy to read. With block-based success and failure handlers, you don't need to implement delegate protocols or provide selectors for callbacks.
  • AFNetworking and Grand Central Dispatch take care of threading for you, so your code does not need to manage threads, run selectors in the background, or invoke dispatch_async. Your completion blocks will be executed on the main thread (unless you configure the operations otherwise).
  • You can provide a better user experience while waiting for a response. Networks are unreliable, particularly for mobile users, and servers can be bogged down. Your users' experiences will be better if you design for a slow connection, which you can only do asynchronously.

However, in some cases, a synchronous response is better, such as when the document architecture or another framework is handling the multithreading for you, and expects a synchronous result. This code attempts to provide a safe and reliable way to use the framework synchronously.

While it overrides the default success and failure queues to avoid a deadlock, it can't anticipate every possible situation. In particular, you should not set the queue from which you're invoking as the processing queue, which will cause a deadlock.

The main thread

You shouldn't call these methods from the main thread. On iOS, if your application enters the background while one of these methods is running on the main thread, a deadlock may result and your application could be terminated.

AFImageRequestOperation processingBlock and custom operation subclasses

This category is suitable for most of the request operation subclasses built into AFNetworking, which process their response objects synchronously.

If you're using the processingBlock on AFImageRequestOperation, which contains essential processing in the completion handler, or your subclass performs other asynchronous processing in the completion handler, use the version in the using-completion-blocks branch.

All custom subclasses must override -responseObject. See AFHTTPRequestOperation+ResponseObject.h for more information.

Development

This project includes integration tests which use the delightful service httpbin. To run them, run pod install inside the TestProject folder, then load the workspace and execute the test action.

Acknowledgements

License

This project is licensed under the MIT license.

Comments
  • Shouldn't AFHTTPRequestOperation return some data?

    Shouldn't AFHTTPRequestOperation return some data?

    I was very pleased to find Your category for AFNetworking, I was in need for handling a specific synchronous case in my otherwise async app. But to my surprise, although I didn't get any errors, I never seemed to get any data back...

    And after spending sometime in the debugger, I noticed that the implementation of the AFHTTPRequestOperation (ResponseObject) ALWAYS returned nil. Replacing that with a simple "return [self responseData]" solved the problem for me.

    Unfortunate, I'm not a experienced Git contributor, so I have no idea how to contribute to the code, so this will be my contribution... :-)

    opened by Janne-M 4
  • Add support for AFNetworking 4.x

    Add support for AFNetworking 4.x

    Add missing header parameter as suggested in https://github.com/paulmelnikow/AFNetworking-Synchronous/issues/9#issuecomment-644450986. Tested and it seems to work in my app using this category with AFNetworking 4.0.1.

    opened by moyitpro 3
  • Cannot put NSError in syncPOST

    Cannot put NSError in syncPOST

    I have used the syncPOST to get the json with using swift. However, synPost need the NSErrorPointer not NSError.

    Here is the Code:

    var error = NSErrorPointer() var error_mes:NSError // failed let josn: AnyObject! = manager.syncPOST(getCol_link, parameters: nil, operation: nil, error: error)

    Error: Cannot invoke 'syncPOST' with an argument list of type '(String, parameters: nil, operation: nil, error: NSError)'

    opened by jackyshek 1
  • Bugfix in version 2.x implementation

    Bugfix in version 2.x implementation

    Bug fixed in the requestWithMethod:URLString:parameters:error: method.

    The original code sent every request as a GET request and ignored the method parameter.

    opened by reden87 1
  • Add AFNetworking-Synchronous to Cocoapods

    Add AFNetworking-Synchronous to Cocoapods

    Hi,

    Cocoapods is a dependency manager that makes it super easy for MacOSX / iOS developers to grab your awesome synchronous extension to AFNetworking and start using it.

    Please add your library there! Other extensions already are on there: http://cocoapods.org/?q=name%3Aafnetworking

    opened by fatuhoku 1
  • Publishing 1.2.0 in Cocoapods

    Publishing 1.2.0 in Cocoapods

    I'm getting this error when I run pod trunk lint AFNetworking-Synchronous.podspec and get stuck in the same place when I try to publish to trunk.

    Validating podspec
     -> AFNetworking-Synchronous (1.2.0)
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  note: Using new build system
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  note: Building targets in parallel
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  note: Using codesigning identity override: -
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  note: Planning build
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  note: Constructing build description
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'App' from project 'App')
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Pods-App' from project 'Pods')
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'AFNetworking-Synchronous' from project 'Pods')
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'AFNetworking' from project 'Pods')
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'AFNetworking' from project 'Pods')
        - NOTE  | [AFNetworking-Synchronous/3.x, AFNetworking-Synchronous/2.x, AFNetworking-Synchronous/1.x, and more...] xcodebuild:  note: Using codesigning identity override:
        - ERROR | [iOS] [AFNetworking-Synchronous/4.x] unknown: Encountered an unknown error (CocoaPods could not find compatible versions for pod "AFNetworking":
      In Podfile:
        AFNetworking-Synchronous/4.x (from `/Users/pnm/code/AFNetworking-Synchronous/AFNetworking-Synchronous.podspec`) was resolved to 1.2.0, which depends on
          AFNetworking (~> 4.0)
    
    Specs satisfying the `AFNetworking (~> 4.0)` dependency were found, but they required a higher minimum deployment target.) during validation.
        - NOTE  | [OSX] [AFNetworking-Synchronous/2.x] xcodebuild:  warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.8, but the range of supported deployment target versions is 10.9 to 11.1.99. (in target 'App' from project 'App')
        - NOTE  | [OSX] [AFNetworking-Synchronous/2.x] xcodebuild:  warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.8, but the range of supported deployment target versions is 10.9 to 11.1.99. (in target 'Pods-App' from project 'Pods')
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:99:41: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:119:12: note: 'NSURLSession' has been marked as being introduced in macOS 10.9 here, but the deployment target is macOS 10.8.0
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:94:12: note: annotate 'AFURLSessionManager' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:201:47: warning: 'NSURLSessionConfiguration' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:674:12: note: 'NSURLSessionConfiguration' has been marked as being introduced in macOS 10.9 here, but the deployment target is macOS 10.8.0
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:201:1: note: annotate 'initWithSessionConfiguration:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:220:4: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:404:12: note: 'NSURLSessionDataTask' has been marked as being introduced in macOS 10.9 here, but the deployment target is macOS 10.8.0
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:220:1: note: annotate 'dataTaskWithRequest:completionHandler:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:237:4: warning: 'NSURLSessionUploadTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:418:12: note: 'NSURLSessionUploadTask' has been marked as being introduced in macOS 10.9 here, but the deployment target is macOS 10.8.0
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:237:1: note: annotate 'uploadTaskWithRequest:fromFile:progress:completionHandler:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:239:52: warning: 'NSProgress' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProgress.h:37:12: note: 'NSProgress' has been marked as being introduced in macOS 10.9 here, but the deployment target is macOS 10.8.0
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:250:4: warning: 'NSURLSessionUploadTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:250:1: note: annotate 'uploadTaskWithRequest:fromData:progress:completionHandler:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:252:52: warning: 'NSProgress' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:262:4: warning: 'NSURLSessionUploadTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:262:1: note: annotate 'uploadTaskWithStreamedRequest:progress:completionHandler:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:263:60: warning: 'NSProgress' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:280:4: warning: 'NSURLSessionDownloadTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:430:12: note: 'NSURLSessionDownloadTask' has been marked as being introduced in macOS 10.9 here, but the deployment target is macOS 10.8.0
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:280:1: note: annotate 'downloadTaskWithRequest:progress:destination:completionHandler:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:281:56: warning: 'NSProgress' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:293:4: warning: 'NSURLSessionDownloadTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:293:1: note: annotate 'downloadTaskWithResumeData:progress:destination:completionHandler:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:294:59: warning: 'NSProgress' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:309:4: warning: 'NSProgress' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:309:1: note: annotate 'uploadProgressForTask:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:309:40: warning: 'NSURLSessionUploadTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:318:4: warning: 'NSProgress' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:318:1: note: annotate 'downloadProgressForTask:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:318:42: warning: 'NSURLSessionDownloadTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:329:51: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:329:1: note: annotate 'setSessionDidBecomeInvalidBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:336:59: warning: 'NSURLSessionAuthChallengeDisposition' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:813:28: note: 'NSURLSessionAuthChallengeDisposition' has been marked as being introduced in macOS 10.9 here, but the deployment target is macOS 10.8.0
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:336:1: note: annotate 'setSessionDidReceiveAuthenticationChallengeBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:336:100: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:347:60: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:347:1: note: annotate 'setTaskNeedNewBodyStreamBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:347:83: warning: 'NSURLSessionTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:286:12: note: 'NSURLSessionTask' has been marked as being introduced in macOS 10.9 here, but the deployment target is macOS 10.8.0
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:354:68: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:354:1: note: annotate 'setTaskWillPerformHTTPRedirectionBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:354:91: warning: 'NSURLSessionTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:361:56: warning: 'NSURLSessionAuthChallengeDisposition' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:361:1: note: annotate 'setTaskDidReceiveAuthenticationChallengeBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:361:97: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:361:120: warning: 'NSURLSessionTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:368:47: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:368:1: note: annotate 'setTaskDidSendBodyDataBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:368:70: warning: 'NSURLSessionTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:375:43: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:375:1: note: annotate 'setTaskDidCompleteBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:375:66: warning: 'NSURLSessionTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:386:45: warning: 'NSURLSessionResponseDisposition' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:821:28: note: 'NSURLSessionResponseDisposition' has been marked as being introduced in macOS 10.9 here, but the deployment target is macOS 10.8.0
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:386:1: note: annotate 'setDataTaskDidReceiveResponseBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:386:81: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:386:104: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:393:57: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:393:1: note: annotate 'setDataTaskDidBecomeDownloadTaskBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:393:80: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:393:112: warning: 'NSURLSessionDownloadTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:400:50: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:400:1: note: annotate 'setDataTaskDidReceiveDataBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:400:73: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:407:70: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:407:1: note: annotate 'setDataTaskWillCacheResponseBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:407:93: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:414:66: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:414:1: note: annotate 'setDidFinishEventsForBackgroundURLSessionBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:425:63: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:425:1: note: annotate 'setDownloadTaskDidFinishDownloadingBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:425:86: warning: 'NSURLSessionDownloadTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:432:52: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:432:1: note: annotate 'setDownloadTaskDidWriteDataBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:432:75: warning: 'NSURLSessionDownloadTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:439:49: warning: 'NSURLSession' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:439:1: note: annotate 'setDownloadTaskDidResumeBlock:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFURLSessionManager.h:439:72: warning: 'NSURLSessionDownloadTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:132:34: warning: 'NSURLSessionConfiguration' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:131:1: note: annotate 'initWithBaseURL:sessionConfiguration:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:148:4: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:148:1: note: annotate 'GET:parameters:success:failure:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:150:41: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:151:41: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:163:4: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:163:1: note: annotate 'HEAD:parameters:success:failure:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:165:42: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:166:42: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:178:4: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:178:1: note: annotate 'POST:parameters:success:failure:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:180:42: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:181:42: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:194:4: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:194:1: note: annotate 'POST:parameters:constructingBodyWithBlock:success:failure:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:197:42: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:198:42: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:210:4: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:210:1: note: annotate 'PUT:parameters:success:failure:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:212:41: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:213:41: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:225:4: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:225:1: note: annotate 'PATCH:parameters:success:failure:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:227:43: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:228:43: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:240:4: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:240:1: note: annotate 'DELETE:parameters:success:failure:' with an availability attribute to silence this warning
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:242:44: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - WARN  | [AFNetworking-Synchronous/2.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPSessionManager.h:243:44: warning: 'NSURLSessionDataTask' is only available on macOS 10.9 or newer [-Wunguarded-availability]
        - NOTE  | [OSX] [AFNetworking-Synchronous/2.x] xcodebuild:  warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.8, but the range of supported deployment target versions is 10.9 to 11.1.99. (in target 'AFNetworking-Synchronous' from project 'Pods')
        - NOTE  | [OSX] [AFNetworking-Synchronous/2.x] xcodebuild:  warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.8, but the range of supported deployment target versions is 10.9 to 11.1.99. (in target 'AFNetworking' from project 'Pods')
        - WARN  | [AFNetworking-Synchronous/1.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPClient.h:84:9: warning: SystemConfiguration framework not found in project, or not included in precompiled header. Network reachability functionality will not be available. [-W#pragma-messages]
        - WARN  | [AFNetworking-Synchronous/1.x] xcodebuild:  AFNetworking/AFNetworking/AFHTTPClient.h:89:9: warning: MobileCoreServices framework not found in project, or not included in precompiled header. Automatic MIME type detection when uploading files in multipart requests will not be available. [-W#pragma-messages]
        - NOTE  | [OSX] [AFNetworking-Synchronous/1.x] xcodebuild:  warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.7, but the range of supported deployment target versions is 10.9 to 11.1.99. (in target 'App' from project 'App')
        - NOTE  | [OSX] [AFNetworking-Synchronous/1.x] xcodebuild:  warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.7, but the range of supported deployment target versions is 10.9 to 11.1.99. (in target 'AFNetworking' from project 'Pods')
        - NOTE  | [OSX] [AFNetworking-Synchronous/1.x] xcodebuild:  warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.7, but the range of supported deployment target versions is 10.9 to 11.1.99. (in target 'Pods-App' from project 'Pods')
        - NOTE  | [OSX] [AFNetworking-Synchronous/1.x] xcodebuild:  warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.7, but the range of supported deployment target versions is 10.9 to 11.1.99. (in target 'AFNetworking-Synchronous' from project 'Pods')
    

    I'm not using this library nor Cocoapods much these days so if anyone else is able to investigate and fix this I'd be happy to publish the fix. Until then 1.2.0 is tagged.

    @moyitpro Any chance this is something you wouldn't mind looking into? Definitely no pressure!

    opened by paulmelnikow 0
  • Synchronous support for AFURLSessionManager

    Synchronous support for AFURLSessionManager

    In the afn2 branch is a category for synchronous methods on AFHTTPRequestOperationManager.

    It'd be good to add synchronous methods for AFURLSessionManager as well.

    Perhaps we could use @floschliep's promising implementation: floschliep/NSURLSession-SynchronousTask

    enhancement 
    opened by paulmelnikow 2
Owner
Paul Melnikow
Dev–product hybrid
Paul Melnikow
A lightweight but powerful network library with simplified and expressive syntax based on AFNetworking.

XMNetworking English Document XMNetworking 是一个轻量的、简单易用但功能强大的网络库,基于 AFNetworking 3.0+ 封装。 其中,XM 前缀是我们团队 Xcode-Men 的缩写。 简介 如上图所示,XMNetworking 采用中心化的设计思想

KANGZUBIN 981 Dec 29, 2022
A custom wrapper over AFNetworking library that we use inside RC extensively

AFNetworkingHelper A very simple wrapper over the most amazing networking library for objective C, AFNetworking. We extensively use it inside RC and i

Betacraft 16 Aug 3, 2021
YTKNetwork is a high level request util based on AFNetworking.

YTKNetwork What YTKNetwork is a high level request util based on AFNetworking. It's developed by the iOS Team of YuanTiKu. It provides a High Level AP

猿辅导技术团队 6.5k Jan 6, 2023
An easy to integrate Model Based Google Maps Helper (SVHTTPClient, AFNetworking) That lets you Geo Code , Reverse Geocode, Get Directions , Places Autocomplete.

GoogleMapsHelper Read Me in Russian : http://gargo.of.by/googlemapshelper/ A GOOGLE MAPS Helper that help you do multiple tasks like HOW TO USE // usi

Zeeshan Haider 21 Jul 28, 2022
🌸 Powerful Codable API requests builder and manager for iOS.

This lib is about network requests with blackjack, roulette and craps! Using it you will be able to convert your massive API layer code into an awesom

CodyFire 251 Jan 8, 2023
Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone

ASIHTTPRequest is an easy to use wrapper around the CFNetwork API that makes some of the more tedious aspects of communicating with web servers easier

Ben Copsey 5.8k Dec 14, 2022
Easy and lightweight network layer for creating different set of network requests like GET, POST, PUT, DELETE customizable with coders conforming to TopLevelDecoder, TopLevelEncoder

Easy and lightweight network layer for creating different set of network requests like GET, POST, PUT, DELETE customizable with coders conforming to TopLevelDecoder, TopLevelEncoder

Igor 2 Sep 16, 2022
A frida tool that capture GET/POST HTTP requests of iOS Swift library 'Alamofire' and disable SSL Pinning.

FridaHookSwiftAlamofire A frida tool that capture GET/POST HTTP requests of iOS Swift library 'Alamofire' and disable SSL Pinning. 中文文档及过程 Features Ca

neilwu 69 Dec 16, 2022
Thin wrapper around NSURLSession in swift. Simplifies HTTP requests.

SwiftHTTP SwiftHTTP is a thin wrapper around NSURLSession in Swift to simplify HTTP requests. Features Convenient Closure APIs Simple Queue Support Pa

Dalton 1.9k Dec 7, 2022
a NSURLCache subclass for handling all web requests that use NSURLRequest

EVURLCache What is this? This is a NSURLCache subclass for handeling all web requests that use NSURLRequest. (This includes UIWebView) The EVURLCache

Edwin Vermeer 296 Dec 18, 2022
Request adapter for URL requests from "MovieLister" demo app (Swift for Good book, a chapter by Ben Scheirman)

RequestAdapter Request adapter for URL requests from "MovieLister" demo app (Swift for Good book, a chapter by Ben Scheirman) The code is taken from:

Mihaela Mihaljevic Jakic 0 Nov 22, 2021
Approov Integration Examples 0 Jan 26, 2022
CoreNetwork module with the basic functionality of requests to the network

CoreNetwork module with the basic functionality of requests to the network

Moscow Metro 4 Apr 27, 2022
Menet is a TCP network middleware that can be dynamically modified through HTTP requests.

Menet Menet is a TCP network middleware that can be dynamically modified through HTTP requests. This is an experimental project, do NOT use it in prod

Nik 2 May 19, 2022
VFNetwork is a protocol-oriented network layer that will help you assemble your requests in just a few steps.

Simple, Fast and Easy. Introduction VFNetwork is a protocol-oriented network layer that will help you assemble your requests in just a few steps. How

Victor Freitas 4 Aug 22, 2022
Server-side Swift. The Perfect core toolset and framework for Swift Developers. (For mobile back-end development, website and API development, and more…)

Perfect: Server-Side Swift 简体中文 Perfect: Server-Side Swift Perfect is a complete and powerful toolbox, framework, and application server for Linux, iO

PerfectlySoft Inc. 13.9k Jan 6, 2023
🌏 A zero-dependency networking solution for building modern and secure iOS, watchOS, macOS and tvOS applications.

A zero-dependency networking solution for building modern and secure iOS, watchOS, macOS and tvOS applications. ?? TermiNetwork was tested in a produc

Bill Panagiotopoulos 90 Dec 17, 2022
StatusBarOverlay will automatically show a "No Internet Connection" bar when your app loses connection, and hide it again. It supports apps which hide the status bar and The Notch

StatusBarOverlay StatusBarOverlay will automatically show a "No Internet Connection" bar when your app loses connection, and hide it again. It support

Idle Hands Apps 160 Nov 2, 2022
Socket.io iOS and OSX Client compatible with v1.0 and later

SocketIO-Kit ⚠️ This project is no longer maintained. Please use the official framework Socket.IO-Client-Swift. SocketIO-Kit is a Socket.io iOS client

Ricardo Pereira 140 Mar 9, 2022