From f1478604357b35db9c0b48d449796169dfffcc2b Mon Sep 17 00:00:00 2001 From: Matt Magoffin Date: Fri, 2 Oct 2015 16:44:24 +1300 Subject: [PATCH 1/2] Change to __weak from __unsafe_unretained to fix crashes during unit testing of many threaded HTTP responses in WebApiClient project. --- Source/RoutingConnection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/RoutingConnection.m b/Source/RoutingConnection.m index 6c03360..376130e 100644 --- a/Source/RoutingConnection.m +++ b/Source/RoutingConnection.m @@ -4,7 +4,7 @@ #import "HTTPResponseProxy.h" @implementation RoutingConnection { - __unsafe_unretained RoutingHTTPServer *http; + __weak RoutingHTTPServer *http; NSDictionary *headers; } From 3fdb5ed6150878e6029198a9d55cdbab4a0db8a4 Mon Sep 17 00:00:00 2001 From: Matt Magoffin Date: Wed, 7 Sep 2016 16:19:02 +1200 Subject: [PATCH 2/2] iOS 5 minimum required for __weak references. --- RoutingHTTPServer.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RoutingHTTPServer.podspec b/RoutingHTTPServer.podspec index 8282437..495a104 100644 --- a/RoutingHTTPServer.podspec +++ b/RoutingHTTPServer.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.source_files = 'Source' s.requires_arc = true - s.ios.deployment_target = '4.0' + s.ios.deployment_target = '5.0' s.osx.deployment_target = '10.7' s.dependency 'CocoaHTTPServer', '~> 2.3'