I have a local pod which mocks a bluetooth device. In it there is this line...
CBATTRequest *request = [CBATTRequest new];
Since upgrading xcode, the build errors out saying 'new' is unavailable
. Clicking through confirms that in the ios 14.5 SDK, this method (init
actually) is indeed marked "unavailable"
/*!
* @class CBATTRequest
*
* @discussion Represents a read or write request from a central.
*
*/
NS_CLASS_AVAILABLE(10_9, 6_0)
CB_EXTERN_CLASS @interface CBATTRequest : NSObject
- (instancetype)init NS_UNAVAILABLE;
...the thing is though, my simulator is set to ios 12.4 and the pods deployment target is set to 12.0.
As stated, this was compiling before I upgraded xcode. The pod dev subteam says it works on ios <= 12.4.
So why is it now compiling against 14.5 rather than 12.x? How do I get it to compile against 12.x?