[2.x] Update Podfile to work on modern CocoaPods. by SlaunchaMan · Pull Request #4329 · AFNetworking/AFNetworking

@SlaunchaMan

@SlaunchaMan added this to the 2.7 milestone

Dec 7, 2018

@SlaunchaMan

@SlaunchaMan

@SlaunchaMan

@SlaunchaMan

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.

@0xced @SlaunchaMan

@0xced @SlaunchaMan

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.

@SlaunchaMan

@SlaunchaMan

@SlaunchaMan

@SlaunchaMan