[2.x] Update Podfile to work on modern CocoaPods. by SlaunchaMan · Pull Request #4329 · AFNetworking/AFNetworking
added this to the
2.7 milestone
This pattern does not make sense at all because the assert can never fail.
if (condition) {
XCTAssert(condition, @"comment");
}
Do not use XCTAssertEqual(reachable, ...) because it might transition to AFNetworkReachabilityStatusNotReachable before becoming reachable.
The status passed in callbacks (both block and notification) is captured before the callbacks are dispatched on the main thread. It is thus possible that the reachabilityManager status change in the meantime. Users MUST use the status parameter for the block callback or the `AFNetworkingReachabilityNotificationStatusItem` user info key for the notification.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters