# Creating Face Based AR iOS 12 Issue

**URL:** <https://forums.kodeco.com/t/creating-face-based-ar-ios-12-issue/60042>\
**Category:** ARKit by Tutorials\
**Created:** [January 17, 2019, 4:13pm UTC](https://forums.kodeco.com/t/creating-face-based-ar-ios-12-issue/60042 "2019-01-17T16:13:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddeger](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ddeger/32/81494_2.png) [@ddeger](https://forums.kodeco.com/u/ddeger)\
**Post date:** [January 17, 2019, 4:13pm UTC](https://forums.kodeco.com/t/creating-face-based-ar-ios-12-issue/60042/1 "2019-01-17T16:13:04Z")

</div>

Hi,

The code for book chapter Creating Face based AR is not properly working. When you try to switch masks nothing is happening. For instance, the code for ARSceneView Delegate function renderer(\_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) is not getting called after you call resetTracking(), which is supposed to .resetTracking and .removeExistingAnchors.

The book is said to be updated for iOS 12, Xcode 10 and Swift 4.2 .

How can we call renderer(didAdd:for:) method every time we want to reset the tracking? One thing I noticed is whenever I mark a breakpoint in my code, the delegate method renderer(didAdd:for:) is getting called some of the time.

Thanks.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [January 17, 2019, 4:56pm UTC](https://forums.kodeco.com/t/creating-face-based-ar-ios-12-issue/60042/2 "2019-01-17T16:56:48Z")

</div>

@paradox927 Can you please help with this when you get a chance? Thank you - much appreciated! :]
