[STHTTPRequest startAsynchronous] uses the sharedContainerIdentifier property of NSURLSessionConfiguration which is only available in iOS 8 and later. This results in a crash when using STTwitter on iOS 7.
Since STTwitter says it supports iOS 7, I consider it is a bug.
A simple solution is to wrap the call in a respondsToSelector: check like so :
if ([sessionConfiguration respondsToSelector:@selector(setSharedContainerIdentifier:)]) {
NSString *containerIdentifier = _sharedContainerIdentifier ? _sharedContainerIdentifier : [[NSBundle mainBundle] bundleIdentifier];
sessionConfiguration.sharedContainerIdentifier = containerIdentifier;
}
[STHTTPRequest startAsynchronous]uses thesharedContainerIdentifierproperty ofNSURLSessionConfigurationwhich is only available in iOS 8 and later. This results in a crash when using STTwitter on iOS 7.Since STTwitter says it supports iOS 7, I consider it is a bug.
A simple solution is to wrap the call in a
respondsToSelector:check like so :