I'm using ARKit as optional framework for my app.
After recent update i've noticed that app started crashing under iOS 10.
dyld: Symbol not found: _SCNHitTestOptionSearchMode
After some research i've found that problem is caused by selector @(SCNHitTestSearchModeAll).
SCNHitTestSearchModeAll is available only in iOS 11. If i comment selector, everything starting ok.
- (NSDictionary *)getSceneObjectsHitResult:(const CGPoint)tapPoint {
NSDictionary *options = @{
SCNHitTestRootNodeKey: self.localOrigin,
SCNHitTestSortResultsKey: @(YES),
SCNHitTestOptionSearchMode: @(SCNHitTestSearchModeAll)
};
NSArray<SCNHitTestResult *> *results = [_arView hitTest:tapPoint options:options];
NSMutableArray * resultsMapped = [self mapHitResultsWithSceneResults:results];
NSDictionary *result = getSceneObjectHitResult(resultsMapped, tapPoint);
return result;
}
What's the best way to isolate this selector? and make it used only in iOS11?
I'm using ARKit as optional framework for my app.
After recent update i've noticed that app started crashing under iOS 10.
After some research i've found that problem is caused by selector
@(SCNHitTestSearchModeAll).SCNHitTestSearchModeAll is available only in iOS 11. If i comment selector, everything starting ok.
What's the best way to isolate this selector? and make it used only in iOS11?