objectAtIndexedSubscript: is only available on iOS 6.0 or newer
Hi, When I compile with Xcode 9.2 beta I have this error OHAlertView/OHAlertView/OHAlertView.m:128:35: 'objectAtIndexedSubscript:' is only available on iOS 6.0 or newer
Hi
This is a new warning introduced in Xcode 9.2
To get rid of it we'll have to bump OHAlertView's deployment target from 5.0 to at least 6.0 in the podspec
TBH, I didn't know people still used OHAlertView. I made it back in the day where UIAlertView was still a thing in iOS 4 or 5 of something and was not that nice to use back then. Now that UIAlertController is the new standard, there's no real reason to use OHAlertView anymore (OHAlertView was adapted to use UIAlertController when available when it appeared in the SDK, to ease the transition, but at that time it wasn't really meant to last, but just to be a nicer way to let people migrate to UIAlertController). In fact, I might even think about deprecating that pod, as I don't plan to maintain it.
If you really want to continue using it for some special reason, don't hesitate to make a PR to bump the deployment target in the podspec (probably to 8.0 now that Xcode 9.0 can't build for any iOS version below that) and also update the Example project's deployment target accordingly. But I'd strongly advise you to consider migrating to something more modern — even using UIAlertController directly (which is already nicer in Swift with trailing closures and all) :wink:
Thank you for your answer always accurate (member of cocoacafe ... ;-)