From 7e6cbe027ab04d9aad275066b7cd52637689c04c Mon Sep 17 00:00:00 2001 From: Artem Lagzdin Date: Fri, 27 May 2016 21:18:09 +0600 Subject: [PATCH 1/2] Fixed an issue with crash on creating an AZSOutputStream on iOS 7/8. --- .../Azure Storage Client Library/AZSBlobOutputStream.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Lib/Azure Storage Client Library/Azure Storage Client Library/AZSBlobOutputStream.m b/Lib/Azure Storage Client Library/Azure Storage Client Library/AZSBlobOutputStream.m index 3bbbbd5..697bb44 100644 --- a/Lib/Azure Storage Client Library/Azure Storage Client Library/AZSBlobOutputStream.m +++ b/Lib/Azure Storage Client Library/Azure Storage Client Library/AZSBlobOutputStream.m @@ -144,9 +144,8 @@ -(instancetype)initWithURL:(NSURL *)url append:(BOOL)shouldAppend -(instancetype)initWithAccessCondition:(AZSAccessCondition *)accessCondition requestOptions:(AZSBlobRequestOptions *)requestOptions operationContext:(AZSOperationContext *)operationContext { - // A designated initializer must make a super call to a designated initializer of the super class. - uint8_t temp; - self = [super initToBuffer:&temp capacity:0]; + // A super call to a designated initializer of the super class leads to a crash in iOS 7 or 8. + self = [super init]; if (self) { _isStreamOpen = NO; From e5f45c67acd75bcb52c8c00da06fddcbf25dcea9 Mon Sep 17 00:00:00 2001 From: Artem Lagzdin Date: Fri, 23 Sep 2016 15:48:55 +0600 Subject: [PATCH 2/2] - iOS 10 remove deprecated asl calls. --- .../Azure Storage Client Library/AZSOperationContext.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/Azure Storage Client Library/Azure Storage Client Library/AZSOperationContext.m b/Lib/Azure Storage Client Library/Azure Storage Client Library/AZSOperationContext.m index a24a84b..c8ea3b3 100644 --- a/Lib/Azure Storage Client Library/Azure Storage Client Library/AZSOperationContext.m +++ b/Lib/Azure Storage Client Library/Azure Storage Client Library/AZSOperationContext.m @@ -104,7 +104,7 @@ -(void)logAtLevel:(AZSLogLevel)logLevel withMessage:(NSString *)stringToLog,... { return; } - + /* va_list args; va_start(args, stringToLog); NSString *finalLogString; @@ -181,6 +181,8 @@ -(void)logAtLevel:(AZSLogLevel)logLevel withMessage:(NSString *)stringToLog,... } va_end(args); // Free the memory used for args. + + */ } -(NSArray *)requestResults @@ -193,4 +195,4 @@ -(void)addRequestResult:(AZSRequestResult *)requestResultToAdd [_requestResults addObject:requestResultToAdd]; } -@end \ No newline at end of file +@end