---
title: "AFNetworking 4.0.0 Breaking Changes on CocoaPods | Since.dev"
description: "What each AFNetworking release removed, renamed or changed: 23 breaking changes in 4 versions on CocoaPods, each with its source."
canonical_url: https://since.dev/packages/cocoapods/AFNetworking
last_updated: 2026-12-04
---

# AFNetworking breaking changes

AFNetworking 4.0.0 is its newest release with breaking changes, 4 of them. The first: Removes all APIs deprecated in earlier versions in AFNetworking 4.0.0. Every breaking API change we have recorded in AFNetworking on CocoaPods: 23 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.1`, released April 20, 2020. The registry marks it deprecated: The latest podspec (4.0.1) is marked deprecated. [Source repository](https://github.com/AFNetworking/AFNetworking)

Its 3.0.0 release requires iOS 7 or later. [iOS end of life dates](https://since.dev/calendar/ios.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 4 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [4.0.0](#v-4-0-0): 16 breaking changes in 2 versions.

## AFNetworking 4.0.0 breaking changes

AFNetworking 4.0.0: 4 breaking changes.

- **Removed**  

Code that calls previously deprecated APIs will no longer compile and must switch to their replacements. [github.com](https://github.com/AFNetworking/AFNetworking/releases/tag/4.0.0)
- **Removed**  

Apps that target older iOS or macOS versions can no longer use this release and must raise their deployment target. [github.com](https://github.com/AFNetworking/AFNetworking/releases/tag/4.0.0)
- **Removed** `UIWebView`  

The UIWebView extensions are gone, so code using them must be changed. [github.com](https://github.com/AFNetworking/AFNetworking/releases/tag/4.0.0)
- **Behavior changed** `AFJSONObjectByRemovingKeysWithNullValues`  

The function now strips NSNull values from NSArrays as well, so callers that expected those values to remain will see different output. [github.com](https://github.com/AFNetworking/AFNetworking/releases/tag/4.0.0)

## AFNetworking 3.0.0 breaking changes

AFNetworking 3.0.0: 12 breaking changes.

- **Removed**  

The UIAlertView category was deleted because it was already deprecated; the application must handle alerts itself. [github.com](https://github.com/AFNetworking/AFNetworking/releases/tag/3.0.0)
- **Removed**  

Deprecated 2.x methods, properties and notifications were deleted, so code that still uses them will no longer compile or work. [github.com](https://github.com/AFNetworking/AFNetworking/releases/tag/3.0.0)
- **Removed**  

AFNetworking now relies only on NSURLSession, so code that uses NSURLConnection-based APIs must move to NSURLSession-based APIs. [github.com](https://github.com/AFNetworking/AFNetworking/releases/tag/3.0.0)
- **Removed** `AFBase64EncodedStringFromString`  

The static function is gone and callers must stop using it. [github.com](https://github.com/AFNetworking/AFNetworking/releases/tag/3.0.0)
- **Removed** `AFHTTPRequestOperation`  

The class is removed in this release; migrate requests to AFHTTPSessionManager tasks. [github.com](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-3.0-Migration-Guide)
- **Removed** `AFHTTPRequestOperationManager`  

Code using AFHTTPRequestOperationManager must migrate to AFHTTPSessionManager. [github.com](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-3.0-Migration-Guide)
- **Removed** `AFURLConnectionOperation`  

The class is removed in this release and must no longer be used. [github.com](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-3.0-Migration-Guide)
- **Behavior changed**  

SSL pinning errors now carry a different error code, so error handling that checks the old code must be updated. [github.com](https://github.com/AFNetworking/AFNetworking/releases/tag/3.0.0)
- **Configuration changed**  

The release requires iOS 7 or later, Mac OS X 10.9 or later, watchOS 2, tvOS 9 and Xcode 7, so older targets cannot use it. [github.com](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-3.0-Migration-Guide)
- **Signature changed**  

Block parameters are now NSURLSessionTask objects, so code that expects AFHTTPRequestOperation must be updated. [github.com](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-3.0-Migration-Guide)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## AFNetworking 2.0.0 breaking changes

AFNetworking 2.0.0: 6 breaking changes.

- **Removed** `AFHTTPClient`  

AFHTTPClient was split into AFHTTPRequestOperationManager and AFHTTPSessionManager, with serialization and reachability moved into separate modules. Code using AFHTTPClient must be migrated to one of the new managers. [github.com](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-2.0-Migration-Guide)
- **Renamed** `failureQueue`  

completionQueue replaces failureQueue; the completion block now dispatches to it after serializing the response. [github.com](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-2.0-Migration-Guide)
- **Renamed** `getPath:parameters:success:failure:`  

The getPath-style AFHTTPClient methods were renamed to verb-named methods that return session data tasks. Update call sites to the new names and expect a different return type. [github.com](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-2.0-Migration-Guide)
- **Renamed** `successQueue`  

completionQueue replaces successQueue; the completion block now dispatches to it after serializing the response. [github.com](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-2.0-Migration-Guide)
- **Behavior changed** `baseURL`  

Managers can be created without a baseURL, but then network reachability monitoring is unavailable and full URL strings must be passed to convenience methods. [github.com](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-2.0-Migration-Guide)
- **Configuration changed**  

AFNetworking 2.0 officially supports iOS 6 and later, Mac OS X 10.8 and later, and Xcode 5. Projects targeting older SDKs must stay on the 1.x release. [github.com](https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-2.0-Migration-Guide)

## AFNetworking 2.0.0-RC2 breaking changes

AFNetworking 2.0.0-RC2: 1 breaking change.

- **Configuration changed**  

The release notes state AFNetworking 2.0 requires iOS 7.0 or later, or Mac OS 10.9 Mavericks or later, which conflicts with the migration guide's iOS 6 figure. [github.com](https://github.com/AFNetworking/AFNetworking/releases/tag/2.0.0-RC2)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
