{"action":"created","issue":{"url":"https://api.github.com/repos/react-native-ar/react-native-arkit/issues/166","repository_url":"https://api.github.com/repos/react-native-ar/react-native-arkit","labels_url":"https://api.github.com/repos/react-native-ar/react-native-arkit/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/react-native-ar/react-native-arkit/issues/166/comments","events_url":"https://api.github.com/repos/react-native-ar/react-native-arkit/issues/166/events","html_url":"https://github.com/react-native-ar/react-native-arkit/issues/166","id":302335332,"number":166,"title":"Using ARKit as optional framework and SCNHitTestSearchModeAll","user":{"login":"michbil","id":498193,"avatar_url":"https://avatars3.githubusercontent.com/u/498193?v=4","gravatar_id":"","url":"https://api.github.com/users/michbil","html_url":"https://github.com/michbil","followers_url":"https://api.github.com/users/michbil/followers","following_url":"https://api.github.com/users/michbil/following{/other_user}","gists_url":"https://api.github.com/users/michbil/gists{/gist_id}","starred_url":"https://api.github.com/users/michbil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michbil/subscriptions","organizations_url":"https://api.github.com/users/michbil/orgs","repos_url":"https://api.github.com/users/michbil/repos","events_url":"https://api.github.com/users/michbil/events{/privacy}","received_events_url":"https://api.github.com/users/michbil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-05T15:07:59Z","updated_at":"2018-03-19T07:17:21Z","closed_at":null,"author_association":"NONE","body":"I'm using ARKit as optional framework for my app. \r\nAfter recent update i've noticed that app started crashing under iOS 10.\r\n```\r\ndyld: Symbol not found: _SCNHitTestOptionSearchMode\r\n```\r\nAfter some research i've found that problem is caused by selector ```@(SCNHitTestSearchModeAll)```.\r\nSCNHitTestSearchModeAll is available only in iOS 11. If i comment selector, everything starting ok.\r\n```\r\n- (NSDictionary *)getSceneObjectsHitResult:(const CGPoint)tapPoint  {\r\n    NSDictionary *options = @{\r\n                              SCNHitTestRootNodeKey: self.localOrigin,\r\n                              SCNHitTestSortResultsKey: @(YES),\r\n                              SCNHitTestOptionSearchMode: @(SCNHitTestSearchModeAll)\r\n                              };\r\n    NSArray<SCNHitTestResult *> *results = [_arView hitTest:tapPoint options:options];\r\n    NSMutableArray * resultsMapped = [self mapHitResultsWithSceneResults:results];\r\n    NSDictionary *result = getSceneObjectHitResult(resultsMapped, tapPoint);\r\n    return result;\r\n}\r\n```\r\nWhat's the best way to isolate this selector? and make it used only in iOS11?"},"comment":{"url":"https://api.github.com/repos/react-native-ar/react-native-arkit/issues/comments/374120740","html_url":"https://github.com/react-native-ar/react-native-arkit/issues/166#issuecomment-374120740","issue_url":"https://api.github.com/repos/react-native-ar/react-native-arkit/issues/166","id":374120740,"user":{"login":"michbil","id":498193,"avatar_url":"https://avatars3.githubusercontent.com/u/498193?v=4","gravatar_id":"","url":"https://api.github.com/users/michbil","html_url":"https://github.com/michbil","followers_url":"https://api.github.com/users/michbil/followers","following_url":"https://api.github.com/users/michbil/following{/other_user}","gists_url":"https://api.github.com/users/michbil/gists{/gist_id}","starred_url":"https://api.github.com/users/michbil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michbil/subscriptions","organizations_url":"https://api.github.com/users/michbil/orgs","repos_url":"https://api.github.com/users/michbil/repos","events_url":"https://api.github.com/users/michbil/events{/privacy}","received_events_url":"https://api.github.com/users/michbil/received_events","type":"User","site_admin":false},"created_at":"2018-03-19T07:17:21Z","updated_at":"2018-03-19T07:17:21Z","author_association":"NONE","body":"@macrozone not sure about warnings, but this change solved issue:\r\n```\r\n  NSDictionary *options = @{\r\n                              SCNHitTestRootNodeKey: self.localOrigin,\r\n                              SCNHitTestSortResultsKey: @(YES),\r\n                              @\"SCNHitTestOptionSearchMode\": @(SCNHitTestSearchModeAll)\r\n                              };\r\n    NSArray<SCNHitTestResult *> *results = [_arView hitTest:tapPoint options:options];\r\n    NSMutableArray * resultsMapped = [self mapHitResultsWithSceneResults:results];\r\n    NSDictionary *result = getSceneObjectHitResult(resultsMapped, tapPoint);\r\n    return result;```"}}
{"actor":{"display_login":"michbil"}}